Merge pull request #266 from dsaul/fix-compiler-error

Fix security related compiler error.
This commit is contained in:
kanjitalk755 2025-02-13 14:26:17 +09:00 committed by GitHub
commit 583d890b93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -1681,7 +1681,7 @@ void display_alert(int title_id, int prefix_id, int button_id, const char *text)
GTK_MESSAGE_WARNING,
GTK_BUTTONS_NONE,
GetString(title_id), NULL);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), text);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), "%s", text);
gtk_dialog_add_button(GTK_DIALOG(dialog), GetString(button_id), GTK_RESPONSE_CLOSE);
g_signal_connect(dialog, "response", G_CALLBACK(dl_destroyed), NULL);
gtk_widget_show(dialog);

View File

@ -1955,7 +1955,7 @@ void display_alert(int title_id, int prefix_id, int button_id, const char *text)
GTK_MESSAGE_WARNING,
GTK_BUTTONS_NONE,
GetString(title_id), NULL);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), text);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), "%s", text);
gtk_dialog_add_button(GTK_DIALOG(dialog), GetString(button_id), GTK_RESPONSE_CLOSE);
g_signal_connect(dialog, "response", G_CALLBACK(dl_destroyed), NULL);
gtk_widget_show(dialog);

View File

@ -1440,7 +1440,7 @@ void display_alert(int title_id, int prefix_id, int button_id, const char *text)
GTK_MESSAGE_WARNING,
GTK_BUTTONS_NONE,
GetString(title_id), NULL);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), text);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), "%s", text);
gtk_dialog_add_button(GTK_DIALOG(dialog), GetString(button_id), GTK_RESPONSE_CLOSE);
g_signal_connect(dialog, "response", G_CALLBACK(dl_destroyed), NULL);
gtk_widget_show(dialog);

View File

@ -2374,7 +2374,7 @@ void display_alert(int title_id, int prefix_id, int button_id, const char *text)
GTK_MESSAGE_WARNING,
GTK_BUTTONS_NONE,
GetString(title_id), NULL);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), text);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), "%s", text);
gtk_dialog_add_button(GTK_DIALOG(dialog), GetString(button_id), GTK_RESPONSE_CLOSE);
g_signal_connect(dialog, "response", G_CALLBACK(dl_destroyed), NULL);
gtk_widget_show(dialog);

View File

@ -1724,7 +1724,7 @@ void display_alert(int title_id, int prefix_id, int button_id, const char *text)
GTK_MESSAGE_WARNING,
GTK_BUTTONS_NONE,
GetString(title_id), NULL);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), text);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), "%s", text);
gtk_dialog_add_button(GTK_DIALOG(dialog), GetString(button_id), GTK_RESPONSE_CLOSE);
g_signal_connect(dialog, "response", G_CALLBACK(dl_destroyed), NULL);
gtk_widget_show(dialog);