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
|
Description: Fix -Wformat-security errors.
Author: Simon Ruderich <simon@ruderich.org>
Last-Update: 2012-03-22
Index: gnome-breakout-0.5.3/src/gui.c
===================================================================
--- gnome-breakout-0.5.3.orig/src/gui.c 2012-03-22 18:55:55.000000000 +0100
+++ gnome-breakout-0.5.3/src/gui.c 2012-03-22 18:55:55.000000000 +0100
@@ -362,7 +362,7 @@
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING,
GTK_BUTTONS_CLOSE,
- buffer);
+ "%s", buffer);
gtk_dialog_run(GTK_DIALOG(mbox));
gtk_widget_destroy(mbox);
} else {
@@ -386,7 +386,7 @@
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_CLOSE,
- buffer);
+ "%s", buffer);
gtk_dialog_run(GTK_DIALOG(mbox));
gtk_widget_destroy(mbox);
} else {
Index: gnome-breakout-0.5.3/src/util.c
===================================================================
--- gnome-breakout-0.5.3.orig/src/util.c 2004-05-11 00:35:32.000000000 +0200
+++ gnome-breakout-0.5.3/src/util.c 2012-03-22 18:58:40.889774594 +0100
@@ -41,6 +41,6 @@
message = g_strdup_vprintf(format, ap);
va_end(ap);
- g_warning(message);
+ g_warning("%s", message);
g_free(message);
}
|