texinfo/texinfo-4.13a-bug788574.diff
Stephan Kulow 9340c663f4 - Use latest CVS version for the last patch
- Be aware that characters of appendix numbering requires a ASCII
  null if used as string (bnc#788574)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/texinfo?expand=0&rev=32
2012-11-22 16:25:34 +00:00

21 lines
480 B
Diff

--- makeinfo/sectioning.c 2008/09/26 11:56:28 1.30
+++ makeinfo/sectioning.c 2011/01/15 00:23:19 1.32
@@ -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]);
+ char s[100];
+ sprintf (s, "%4d", numbers[0]);
return xstrdup (s);
}
}