projects
/
platform
/
upstream
/
sysprof.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b957f30
)
Fix build with -Werror=format-security
author
Pascal Terjan
<pterjan@mandriva.com>
Tue, 23 Mar 2010 16:21:37 +0000
(17:21 +0100)
committer
Pascal Terjan
<pterjan@mandriva.com>
Tue, 23 Mar 2010 16:21:37 +0000
(17:21 +0100)
Don't use dynamic string as format, one of the args could be a string
containing %.
sysprof.c
patch
|
blob
|
history
diff --git
a/sysprof.c
b/sysprof.c
index
be87247
..
cc676a9
100644
(file)
--- a/
sysprof.c
+++ b/
sysprof.c
@@
-333,7
+333,7
@@
sorry (GtkWidget *parent_window,
dialog = gtk_message_dialog_new (parent_window ? GTK_WINDOW (parent_window) : NULL,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
- GTK_BUTTONS_OK, message);
+ GTK_BUTTONS_OK,
"%s",
message);
g_free (message);
gtk_window_set_title (GTK_WINDOW (dialog), APPLICATION_NAME " Warning");