* make-docfile.c (write_c_args): Correctly handle prefixes of "defalt".

This commit is contained in:
Juanma Barranquero 2010-07-23 15:35:51 +02:00
parent 1eb5ca1cb4
commit 554d39beea
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2010-07-23 Juanma Barranquero <lekktu@gmail.com>
* make-docfile.c (write_c_args): Correctly handle prefixes of "defalt".
2010-07-20 Juanma Barranquero <lekktu@gmail.com>
* emacsclient.c (get_current_dir_name, w32_get_resource)

View file

@ -488,7 +488,7 @@ write_c_args (FILE *out, char *func, char *buf, int minargs, int maxargs)
/* In C code, `default' is a reserved word, so we spell it
`defalt'; unmangle that here. */
if (strncmp (ident_start, "defalt", ident_length) == 0)
if (ident_length == 6 && strncmp (ident_start, "defalt", 6) == 0)
fprintf (out, "DEFAULT");
else
while (ident_length-- > 0)