]> git.pld-linux.org Git - packages/libgxim.git/commitdiff
- fix format string error
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 14 Jul 2013 12:03:59 +0000 (14:03 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 14 Jul 2013 12:03:59 +0000 (14:03 +0200)
format-security.patch [new file with mode: 0644]
libgxim.spec

diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..36281be
--- /dev/null
@@ -0,0 +1,11 @@
+--- libgxim-0.4.0/libgxim/gximprotocol10.c~    2012-11-22 15:34:45.000000000 +0100
++++ libgxim-0.4.0/libgxim/gximprotocol10.c     2013-07-14 14:02:57.655038656 +0200
+@@ -2072,7 +2072,7 @@
+       msg = g_strdup_printf("Unable to parse the protocol %s properly",
+                             g_xim_protocol_name(major_opcode));
+-      g_xim_messages_error(G_XIM_PROTOCOL_GET_IFACE (proto)->message, msg);
++      g_xim_messages_error(G_XIM_PROTOCOL_GET_IFACE (proto)->message, "%s", msg);
+       switch (major_opcode) {
+           case G_XIM_CONNECT:
+           case G_XIM_AUTH_REQUIRED:
index 2997469e1997264a74c04273ad7fa1fc1293c77d..1cdb06380840ff65ef777277aab5232732b24309 100644 (file)
@@ -13,6 +13,7 @@ Group:                Libraries
 #Source0Download: http://code.google.com/p/libgxim/downloads/list
 Source0:       http://libgxim.googlecode.com/files/%{name}-%{version}.tar.bz2
 # Source0-md5: bbe8ee379e68955a6f9ff2ac46b05024
+Patch0:                format-security.patch
 URL:           http://code.google.com/p/libgxim/
 BuildRequires: dbus-devel >= 0.23
 BuildRequires: dbus-glib-devel >= 0.74
@@ -85,6 +86,7 @@ Dokumentacja API biblioteki libgxim.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure \
This page took 0.054117 seconds and 4 git commands to generate.