xfig/38_formatstring.patch
Michal Srb 358a070333 Use fprintf in safe manner
Needed due to -Werror=format-security
2014-01-06 13:02:42 +01: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;