xfig/38_formatstring.patch
Hans de Goede deaf0af570 Re-organize / consolidate patches
- Add a bunch of patches (minor bug-fixes) from the Debian package
- Add better icons from the Debian package
2012-08-12 18:06:54 +02:00

14 lines
366 B
Diff

From: Roland Rosenfeld <roland@debian.org>
Subject: Fix format string error with hardening.
--- a/w_msgpanel.c
+++ b/w_msgpanel.c
@@ -588,7 +588,7 @@
strcat(tmpstr,"\n");
if (update_figs) {
- fprintf(stderr,tmpstr);
+ fprintf(stderr, "%s", tmpstr);
} else {
/* append this message to the file message widget string */
block.firstPos = 0;