mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
app-misc/kanatest: fix -Wformat-security
Closes: https://bugs.gentoo.org/521098 Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
22
app-misc/kanatest/files/kanatest-0.4.8-format-security.patch
Normal file
22
app-misc/kanatest/files/kanatest-0.4.8-format-security.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
--- a/src/stats.c
|
||||
+++ b/src/stats.c
|
||||
@@ -84,7 +84,7 @@ gchar buffer[BUFFER_SIZE];
|
||||
|
||||
info_dialog = gtk_message_dialog_new (GTK_WINDOW(appGUI->sts->stat_window),
|
||||
GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL,
|
||||
- GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, buffer);
|
||||
+ GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, "%s", buffer);
|
||||
|
||||
gtk_window_set_title(GTK_WINDOW(info_dialog), _("Question"));
|
||||
gtk_widget_show (info_dialog);
|
||||
--- a/src/test.c
|
||||
+++ b/src/test.c
|
||||
@@ -538,7 +538,7 @@ test_info(GUI *appGUI) {
|
||||
|
||||
info_dialog = gtk_message_dialog_new_with_markup (GTK_WINDOW(appGUI->main_window),
|
||||
GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL,
|
||||
- GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, message);
|
||||
+ GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, "%s", message);
|
||||
|
||||
gtk_window_set_title (GTK_WINDOW(info_dialog), _("Information"));
|
||||
gtk_widget_show (info_dialog);
|
||||
@@ -24,6 +24,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${P}-autoconf.patch
|
||||
"${FILESDIR}"/${P}-cflags.patch
|
||||
"${FILESDIR}"/${P}-desktop-QA.patch
|
||||
"${FILESDIR}"/${P}-format-security.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
Reference in New Issue
Block a user