1From d05d7fa24ee128f1f33a2e905fc3601955dd27d4 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 29 Mar 2017 18:06:02 -0700
4Subject: [PATCH 3/3] Add format string qualifier to fix potential security
5 risk
6
7Fixes
8libgxim/gximprotocol10.c:2076:66: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12Upstream-Status: Pending
13
14 libgxim/gximprotocol10.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/libgxim/gximprotocol10.c b/libgxim/gximprotocol10.c
18index 04887a5..65bd4df 100644
19--- a/libgxim/gximprotocol10.c
20+++ b/libgxim/gximprotocol10.c
21@@ -2073,7 +2073,7 @@ g_xim_protocol10_closure_real_parser_error(GXimProtocol *proto,
22 	msg = g_strdup_printf("Unable to parse the protocol %s properly",
23 			      g_xim_protocol_name(major_opcode));
24
25-	g_xim_messages_error(G_XIM_PROTOCOL_GET_IFACE (proto)->message, msg);
26+	g_xim_messages_error(G_XIM_PROTOCOL_GET_IFACE (proto)->message, "%s", msg);
27 	switch (major_opcode) {
28 	    case G_XIM_CONNECT:
29 	    case G_XIM_AUTH_REQUIRED:
30--
312.12.1
32
33