[ghex] appwin: Fix string format warnings when mmap disabled



commit 0c54560ce123b2da2d35c1b3081c9429b4aaaec5
Author: Logan Rathbone <poprocks gmail com>
Date:   Mon Apr 4 22:27:12 2022 -0400

    appwin: Fix string format warnings when mmap disabled

 src/ghex-application-window.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/ghex-application-window.c b/src/ghex-application-window.c
index 34cf802..0c6aef7 100644
--- a/src/ghex-application-window.c
+++ b/src/ghex-application-window.c
@@ -2116,12 +2116,14 @@ do_nag_screen (GHexApplicationWindow *self)
                                "this GHex session.\n\n"
                                "This limitation will be removed in a future version of GHex.");
        
-               g_printerr (msg); g_printerr ("\n");
+               g_printerr ("%s", msg);
+               g_printerr ("\n");
 
                nag_screen = gtk_message_dialog_new (GTK_WINDOW(self),
                                GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
                                GTK_MESSAGE_WARNING,
                                GTK_BUTTONS_YES_NO,
+                               "%s",
                                msg);
                g_signal_connect (nag_screen, "response",
                                G_CALLBACK(nag_screen_response_cb), self);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]