From 52f8c7ab8cf89104dbb1e64b3d83a4e06c712e4f Mon Sep 17 00:00:00 2001 From: "Geoffrey D. Bennett" Date: Thu, 17 Mar 2022 17:06:19 +1030 Subject: [PATCH] Fix format-security warning in error.c gtk_message_dialog_new() takes a format string which should be "%s" in this case, not the string to display. Reported by Sebastian. --- src/error.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/error.c b/src/error.c index 70b2371..b8d5c56 100644 --- a/src/error.c +++ b/src/error.c @@ -14,6 +14,7 @@ void show_error(GtkWindow *w, char *s) { GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, + "%s", s ); gtk_widget_show(dialog);