parent
2f118716f3
commit
2017d08745
@ -0,0 +1,34 @@
|
|||||||
|
From 6bf9864e1117cce8fbc3c8d7874950cdaba5e3f2 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
|
||||||
|
Date: Fri, 5 Feb 2016 02:06:43 +0900
|
||||||
|
Subject: [PATCH] Make code compile with gcc6 -Werror=format-security
|
||||||
|
|
||||||
|
---
|
||||||
|
src/gnome-cmd-xml-config.cc | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/gnome-cmd-xml-config.cc b/src/gnome-cmd-xml-config.cc
|
||||||
|
index 6a38c57..ef2ebb5 100644
|
||||||
|
--- a/src/gnome-cmd-xml-config.cc
|
||||||
|
+++ b/src/gnome-cmd-xml-config.cc
|
||||||
|
@@ -849,7 +849,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);
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -870,7 +870,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;
|
||||||
|
--
|
||||||
|
2.7.0
|
||||||
|
|
Loading…
Reference in new issue