changeset 109498:78dcd5cace97

* make-docfile.c (write_c_args): Correctly handle prefixes of "defalt".
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 23 Jul 2010 15:35:51 +0200
parents c40b94d7d47b
children 1db541d863cf
files lib-src/ChangeLog lib-src/make-docfile.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/ChangeLog	Fri Jul 23 15:31:56 2010 +0200
+++ b/lib-src/ChangeLog	Fri Jul 23 15:35:51 2010 +0200
@@ -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)
--- a/lib-src/make-docfile.c	Fri Jul 23 15:31:56 2010 +0200
+++ b/lib-src/make-docfile.c	Fri Jul 23 15:35:51 2010 +0200
@@ -488,7 +488,7 @@
 
 	  /* 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)