a2ps/a2ps-overrun-static.patch
Zdenek Dohnal e607f40fd0 2225694 - a2ps: FTBFS in Fedora rawhide/f39
2189133 - a2ps: FTBFS in rawhide, 64-bit and C99 compatibility issues

2176254 - a2ps-4.15.5 is available

SPDX migration done
2023-07-27 16:47:46 +02:00

12 lines
548 B
Diff

diff -up a2ps-4.14/liba2ps/metaseq.c.overrun-static a2ps-4.14/liba2ps/metaseq.c
--- a2ps-4.14/liba2ps/metaseq.c.overrun-static 2011-08-10 16:18:44.924915695 +0100
+++ a2ps-4.14/liba2ps/metaseq.c 2011-08-10 16:19:04.739555258 +0100
@@ -334,7 +334,7 @@ grow_user_string_obstack (struct obstack
{
/* `%D{}' format run date with strftime() */
for (j = 0, i += 2;
- j < sizeof (buf2) && str[i] && str[i] != '}';
+ j < sizeof (buf2) - 1 && str[i] && str[i] != '}';
i++, j++)
buf2[j] = str[i];
if (str[i] != '}')