File: 05_format-security.patch

package info (click to toggle)
pcsxr 1.9.94-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,880 kB
  • sloc: ansic: 117,284; objc: 8,159; cpp: 1,140; makefile: 315; asm: 145; pascal: 30; sh: 20
file content (25 lines) | stat: -rw-r--r-- 790 bytes parent folder | download | duplicates (5)
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
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);