allegro/allegro-4.2.3-pack-formatstring.patch
Hans de Goede 3d05695b38 - Fix a format string bug in the pack utility reported on bugtraq
(but without security implications)
2011-01-07 11:51:23 +01:00

12 lines
360 B
Diff

diff -up allegro-4.2.3/tools/pack.c~ allegro-4.2.3/tools/pack.c
--- allegro-4.2.3/tools/pack.c~ 2006-05-20 16:49:58.000000000 +0200
+++ allegro-4.2.3/tools/pack.c 2010-12-30 11:20:42.425231307 +0100
@@ -42,7 +42,7 @@ static void err(char *s1, char *s2)
printf(": %s", s1);
if (s2)
- printf(s2);
+ printf("%s", s2);
printf("\n");