diff --git a/texinfo-4.13a-bug788574.diff b/texinfo-4.13a-bug788574.diff new file mode 100644 index 0000000..4fa0e2c --- /dev/null +++ b/texinfo-4.13a-bug788574.diff @@ -0,0 +1,20 @@ +--- 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); + } + } diff --git a/texinfo.changes b/texinfo.changes index e14ebc7..e5a6245 100644 --- a/texinfo.changes +++ b/texinfo.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Tue Nov 20 10:02:54 UTC 2012 - werner@suse.de + +- Use latest CVS version for the last patch + +------------------------------------------------------------------- +Mon Nov 19 14:24:06 UTC 2012 - werner@suse.de + +- Be aware that characters of appendix numbering requires a ASCII + null if used as string (bnc#788574) + ------------------------------------------------------------------- Sat Oct 6 06:18:21 UTC 2012 - coolo@suse.com diff --git a/texinfo.spec b/texinfo.spec index 13ce79c..d76b38d 100644 --- a/texinfo.spec +++ b/texinfo.spec @@ -61,6 +61,7 @@ Patch6: texi2roff-2.0-gcc4.patch Patch7: texinfo-4.13a-bug640417.diff Patch8: texinfo-4.13a-bug713517.diff Patch9: automake-1.12.patch +Patch10: texinfo-4.13a-bug788574.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -106,6 +107,7 @@ rm -rf texi2html-%{version_t2h} texi2roff-%{version_t2r} %patch7 -p1 -b .size_t %patch8 -p0 -b .egrep %patch9 -p1 +%patch10 -p0 -b .appendix %patch -p0 pushd ../texi2html-%{version_t2h} %patch1 -p0