summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/xv/files/xv-3.10a-wformat-security.patch')
-rw-r--r--media-gfx/xv/files/xv-3.10a-wformat-security.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/media-gfx/xv/files/xv-3.10a-wformat-security.patch b/media-gfx/xv/files/xv-3.10a-wformat-security.patch
new file mode 100644
index 000000000000..34d2c19ebae3
--- /dev/null
+++ b/media-gfx/xv/files/xv-3.10a-wformat-security.patch
@@ -0,0 +1,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; }
+ }