]> git.draconx.ca Git - cdecl99.git/blobdiff - src/parse.y
libcdecl: Remove glibc snprintf workaround.
[cdecl99.git] / src / parse.y
index 80801c3b7d041c1e94952fa9b6123e23f221ff43..87d3f45e0a7c720436b287faab828b85e6f25def 100644 (file)
  * name strings can be used directly in error messages and there is no
  * need for any string processing.
  */
-#define yytnamerr(a, b) ( (a) ? yytnamerr_copy(a, b) \
-                              : strlen(b) )
-
-static size_t yytnamerr_copy(char *dst, const char *src)
-{
-       return cdecl__strlcpy(dst, src, strlen(src)+1);
-}
+#define yytnamerr(a, b) ( (a) ? cdecl__strlcpy(a, b, -1) : strlen(b) )
 %}
 
 %code requires {