summaryrefslogtreecommitdiff
blob: 34d2c19ebae3b7be4614d2f14cdb3f2ba42fcde5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Fix errors caused by -Wformat -Werror=format-security
https://bugs.gentoo.org/show_bug.cgi?id=542134

* xvpbm.c:888:4: error: format not a string literal and no format arguments [-Werror=format-security]
*     if (*pix) fprintf(fp,str1);

--- xv-3.10a/xvpbm.c
+++ xv-3.10a/xvpbm.c
@@ -885,8 +885,8 @@
 	  }
 	}
 	else {
-	  if (*pix) fprintf(fp,str1);
-	       else fprintf(fp,str0);
+	  if (*pix) fprintf(fp,"%s",str1);
+	       else fprintf(fp,"%s",str0);
 	  len+=2;
 	  if (len>68) { fprintf(fp,"\n"); len=0; }
 	}