Fix a -werror format-security in glib
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 2 May 2017 13:25:01 +0000 (15:25 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 2 May 2017 13:25:01 +0000 (15:25 +0200)
* Makefile.am (EXTRA_DIST): Update accordingly.
* patches/glib-2.41.5/02-formatsec.patch: New.

Makefile.am
patches/glib-2.41.5/02-formatsec.patch [new file with mode: 0755]

index 6f6c60f..87d3983 100644 (file)
@@ -28,6 +28,7 @@ EXTRA_DIST = autogen.sh README.GIT ONEWS \
         doc/license-page doc/GPLv3 \
         build-aux/git-log-footer build-aux/git-log-fix \
         patches/glib-2.41.5/01-socket.patch \
+        patches/glib-2.41.5/02-formatsec.patch \
         patches/qtbase/fix-freetype-link.patch \
         patches/qtbase/fix-oci-detect.patch \
         patches/qtbase/fix-syssemaphore.patch \
diff --git a/patches/glib-2.41.5/02-formatsec.patch b/patches/glib-2.41.5/02-formatsec.patch
new file mode 100755 (executable)
index 0000000..7752cfd
--- /dev/null
@@ -0,0 +1,13 @@
+#! /bin/sh
+patch -p0 -l -f $* < $0
+exit $?
+
+--- gio/gregistrysettingsbackend.c.orig 2017-05-02 12:29:41.949315510 +0200
++++ gio/gregistrysettingsbackend.c      2017-05-02 12:30:04.273740051 +0200
+@@ -228,7 +228,7 @@
+   if (result_code == ERROR_KEY_DELETED)
+     trace ("(%s)", win32_message);
+   else
+-    g_message (win32_message);
++    g_message ("%s", win32_message);
+ };