* make-docfile.c (write_c_args): Correctly handle prefixes of "defalt".
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 23 Jul 2010 13:35:51 +0000 (15:35 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 23 Jul 2010 13:35:51 +0000 (15:35 +0200)
lib-src/ChangeLog
lib-src/make-docfile.c

index 1b6a16d..424f3db 100644 (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)
index 51c30f9..0b03b5e 100644 (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)