xfig (1:3.2.5.b-3) 38_formatstring.patch

Summary

 w_msgpanel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

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;