void-packages/srcpkgs/pcsxr/patches/05_format-security.patch

26 lines
790 B
Diff

Description: Fix multiple "format not a string literal" warnings
Author: Andrey Rahmatullin <wrar@wrar.name>
Forwarded: no
Last-Update: 2012-06-15
--- a/gui/GtkGui.c
+++ b/gui/GtkGui.c
@@ -1114,7 +1114,7 @@ void SysErrorMessage(gchar *primary, gch
primary,
NULL);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(message_dialog),
- "s", secondary);
+ "%s", secondary);
gtk_dialog_run(GTK_DIALOG(message_dialog));
gtk_widget_destroy(message_dialog);
@@ -1133,7 +1133,7 @@ void SysInfoMessage(gchar *primary, gcha
primary,
NULL);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(message_dialog),
- "s", secondary);
+ "%s", secondary);
gtk_dialog_run(GTK_DIALOG(message_dialog));
gtk_widget_destroy(message_dialog);