summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libgii/files')
-rw-r--r--media-libs/libgii/files/libgii-1.0.2-Wformat-security.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/media-libs/libgii/files/libgii-1.0.2-Wformat-security.patch b/media-libs/libgii/files/libgii-1.0.2-Wformat-security.patch
new file mode 100644
index 000000000000..5fab014afb06
--- /dev/null
+++ b/media-libs/libgii/files/libgii-1.0.2-Wformat-security.patch
@@ -0,0 +1,28 @@
+--- a/input/linux_mouse/input.c
++++ b/input/linux_mouse/input.c
+@@ -251,7 +251,7 @@ static int do_mouse_open(gii_input *inp, char *filename,
+ " device may not work as expected\n");
+ #endif /* HAVE_TIOCMSET */
+ }
+- if (dowarn) fprintf(stderr, serialfailstr);
++ if (dowarn) fprintf(stderr, "%s", serialfailstr);
+ }
+
+ return 0;
+--- a/input/lk201/input.c
++++ b/input/lk201/input.c
+@@ -256,12 +256,12 @@ do_lk201_open(gii_input *inp, const char *filename)
+ }
+ else
+ {
+- fprintf(stderr, tcsetattrfailstr);
++ fprintf(stderr, "%s", tcsetattrfailstr);
+ }
+ }
+ else
+ {
+- fprintf(stderr, tcgetattrfailstr);
++ fprintf(stderr, "%s", tcgetattrfailstr);
+ }
+
+ /* dump and characters currently in the buffer */