sdl: fix format string potential security error (accepted patch from Joe Nahmias; thanks!)

This commit is contained in:
punkrockguy318 2013-07-08 16:10:06 +00:00
parent e99c791670
commit 4acc21804e
1 changed files with 1 additions and 1 deletions

View File

@ -990,7 +990,7 @@ void FCEUD_PrintError(const char *errormsg)
{
GtkWidget* d;
d = gtk_message_dialog_new(GTK_WINDOW(MainWindow), GTK_DIALOG_MODAL,
GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, errormsg);
GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", errormsg);
gtk_dialog_run(GTK_DIALOG(d));
gtk_widget_destroy(d);
}