summaryrefslogtreecommitdiffstats
path: root/import-layers/meta-openembedded/meta-gnome/recipes-gnome/pimlico/dates/0001-Fix-format-security-warnings.patch
blob: 4f551a7d8c353765e782e743dccf37546e725b2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
From 687881c5fa342686c8724adcdac0f9d555a351c3 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 5 Apr 2017 18:10:57 -0700
Subject: [PATCH] Fix format security warnings

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 src/dates_callbacks.c | 2 +-
 src/dates_gtk.c       | 2 +-
 src/gconf-bridge.c    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/dates_callbacks.c b/src/dates_callbacks.c
index d704c8f..46b8cb1 100644
--- a/src/dates_callbacks.c
+++ b/src/dates_callbacks.c
@@ -365,7 +365,7 @@ dates_about_cb (GtkWidget *widget, DatesData *d)
 
 	if (!pixb) {
 		g_assert (error);
-		g_warning (error->message);
+		g_warning ("%s", error->message);
 		g_clear_error (&error);
 	}
 
diff --git a/src/dates_gtk.c b/src/dates_gtk.c
index 403bc25..fd691d2 100644
--- a/src/dates_gtk.c
+++ b/src/dates_gtk.c
@@ -1114,7 +1114,7 @@ calendar_do_edit_dialog_response_cb (GtkDialog *dialog, gint response_id, gpoint
 				GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
 				GTK_MESSAGE_WARNING,
 				GTK_BUTTONS_NONE,
-				prompt);
+				"%s", prompt);
 
 		g_free (prompt);
 
diff --git a/src/gconf-bridge.c b/src/gconf-bridge.c
index 49754cf..67d3757 100644
--- a/src/gconf-bridge.c
+++ b/src/gconf-bridge.c
@@ -1220,7 +1220,7 @@ error_handler (GConfClient *client,
                 dlg = gtk_message_dialog_new (NULL, 0,
                                               GTK_MESSAGE_ERROR,
                                               GTK_BUTTONS_OK,
-                                              message);
+                                              "%s", message);
                 g_free (message);
 
                 gtk_message_dialog_format_secondary_text
-- 
2.12.2

OpenPOWER on IntegriCloud