diff options
author | David Seifert <soap@gentoo.org> | 2021-10-16 15:58:33 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-10-16 15:58:33 +0200 |
commit | fe235bbe8df4e0271669eeda58d6710ae5efc021 (patch) | |
tree | 822abc11304bcb0f6571d34a5f2e2ee21d56a291 /app-misc/kanatest | |
parent | app-misc/kanatest: port to EAPI 8 (diff) | |
download | gentoo-fe235bbe8df4e0271669eeda58d6710ae5efc021.tar.gz gentoo-fe235bbe8df4e0271669eeda58d6710ae5efc021.tar.bz2 gentoo-fe235bbe8df4e0271669eeda58d6710ae5efc021.zip |
app-misc/kanatest: fix -Wformat-security
Closes: https://bugs.gentoo.org/521098
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-misc/kanatest')
-rw-r--r-- | app-misc/kanatest/files/kanatest-0.4.8-format-security.patch | 22 | ||||
-rw-r--r-- | app-misc/kanatest/kanatest-0.4.8.ebuild | 1 |
2 files changed, 23 insertions, 0 deletions
diff --git a/app-misc/kanatest/files/kanatest-0.4.8-format-security.patch b/app-misc/kanatest/files/kanatest-0.4.8-format-security.patch new file mode 100644 index 000000000000..7493d0a7bd15 --- /dev/null +++ b/app-misc/kanatest/files/kanatest-0.4.8-format-security.patch @@ -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); diff --git a/app-misc/kanatest/kanatest-0.4.8.ebuild b/app-misc/kanatest/kanatest-0.4.8.ebuild index 187ad8bee1a9..c1d64fbe9eb8 100644 --- a/app-misc/kanatest/kanatest-0.4.8.ebuild +++ b/app-misc/kanatest/kanatest-0.4.8.ebuild @@ -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() { |