[gnome-commander/ConvertWarningsToErrors] Adds strring formant, fixes gcc warning about Wformat-security



commit 7a7fed877a440a4494cda08bdcdfa8a422b4f23c
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Sat Apr 22 09:19:58 2017 +0200

    Adds strring formant, fixes gcc warning about Wformat-security

 libgcmd/gnome-cmd-string-dialog.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgcmd/gnome-cmd-string-dialog.cc b/libgcmd/gnome-cmd-string-dialog.cc
index 5d6d737..057d125 100644
--- a/libgcmd/gnome-cmd-string-dialog.cc
+++ b/libgcmd/gnome-cmd-string-dialog.cc
@@ -51,7 +51,7 @@ static void on_ok (GtkButton *button, GnomeCmdStringDialog *dialog)
 
         valid = dialog->priv->ok_cb (dialog, (const gchar**)values, dialog->priv->data);
         if (!valid)
-            create_error_dialog (dialog->priv->error_desc);
+            create_error_dialog ("%s", dialog->priv->error_desc);
         g_free (values);
     }
 


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