blob: 7f9fdf397149a1817f2fdb6c837a634ab284a2c6 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From 37632aca00d48c53e91f08bc7435c721ba81b2cd Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 30 Mar 2017 14:32:55 -0700
4Subject: [PATCH] test-unique: Add format qualifier %s for string
5
6Fixes potential security issues that compiler flags
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 tests/test-unique.c | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/tests/test-unique.c b/tests/test-unique.c
14index b7cde45..82ee81b 100644
15--- a/tests/test-unique.c
16+++ b/tests/test-unique.c
17@@ -82,10 +82,10 @@ app_message_cb (UniqueApp *app,
18 GTK_DIALOG_DESTROY_WITH_PARENT,
19 GTK_MESSAGE_INFO,
20 GTK_BUTTONS_CLOSE,
21- title);
22+ "%s",title);
23 if (message)
24 gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
25- message);
26+ "%s",message);
27
28 gtk_window_set_urgency_hint (GTK_WINDOW (dialog), TRUE);
29
30--
312.12.1
32