No place for terminating \0 == segfault. 

--- texinfo-4.13/makeinfo/sectioning.c.org      2008-11-03 23:01:26.957799459 
+0100
+++ texinfo-4.13/makeinfo/sectioning.c  2008-11-03 23:02:10.180927044 +0100
@@ -256,14 +256,14 @@
     return xstrdup ("");
   else if (enum_marker == APPENDIX_MAGIC)
     {
-      char s[1];
+      char s[2];
       sprintf (s, "%c", numbers[0] + 64);
       return xstrdup (s);
     }
   else
     {
       char s[5];
-      sprintf (s, "%d", numbers[0]);
+      sprintf (s, "%4d", numbers[0]);
       return xstrdup (s);
     }
 }

-- 
Arkadiusz Miƛkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/


Reply via email to