9340c663f4
- 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
21 lines
480 B
Diff
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);
|
|
}
|
|
}
|