use fixed format string to avoid -Wformat-security warning
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Tue, 29 Mar 2016 00:11:59 +0000 (02:11 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Tue, 29 Mar 2016 00:11:59 +0000 (02:11 +0200)
The debian build fails due to the -Wformat-security check. This
change replaces a variable format string with a fixed format
string.

src/ui/gui/missing-val-dialog.c

index af63af1fd3a38a00f824718dd73fa86e8c345fd5..45916dd9325a3431d31f230b6f8f9dac1ff36c3e 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2005, 2006, 2009, 2011, 2012, 2015  Free Software Foundation
+   Copyright (C) 2005, 2006, 2009, 2011, 2012, 2015, 2016  Free Software Foundation
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -181,7 +181,7 @@ err_dialog (const gchar *msg, GtkWindow *window)
                            GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
                            GTK_MESSAGE_ERROR,
                            GTK_BUTTONS_CLOSE,
-                           msg);
+                           "%s",msg);
 
   gtk_dialog_run (GTK_DIALOG (dialog));
   gtk_widget_destroy (dialog);