[gnome-commander] Make code compile with gcc6 -Werror=format-security
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Make code compile with gcc6 -Werror=format-security
- Date: Tue, 9 Feb 2016 22:20:25 +0000 (UTC)
commit 7675f18dd56c6f1e4e2ee0f6b3469fbfdfaec415
Author: Mamoru TASAKA <mtasaka fedoraproject org>
Date: Fri Feb 5 02:06:43 2016 +0900
Make code compile with gcc6 -Werror=format-security
Signed-off-by: Uwe Scholz <uwescholz src gnome org>
src/gnome-cmd-xml-config.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-xml-config.cc b/src/gnome-cmd-xml-config.cc
index 0eae03d..e7d4d3c 100644
--- a/src/gnome-cmd-xml-config.cc
+++ b/src/gnome-cmd-xml-config.cc
@@ -852,7 +852,7 @@ gboolean gnome_cmd_xml_config_parse (const gchar *xml, gsize xml_len, GnomeCmdDa
if (!g_markup_parse_context_parse (context, xml, xml_len, &error) ||
!g_markup_parse_context_end_parse (context, &error))
{
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
}
@@ -873,7 +873,7 @@ gboolean gnome_cmd_xml_config_load (const gchar *path, GnomeCmdData &cfg)
if (!g_file_get_contents (path, &xml, &xml_len, &error))
{
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]