[conglomerate] Fix putting abitrary string as format string to g_warning



commit 3de0caa026443bd4c5a15a59c3062a7413ee88a0
Author: Nguy�n Thái Ng�c Duy <pclouds gmail com>
Date:   Thu Sep 17 13:02:19 2009 +0700

    Fix putting abitrary string as format string to g_warning

 src/cong-menus.c  |    2 +-
 src/plugin-sgml.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/cong-menus.c b/src/cong-menus.c
index 3379f9c..159d7ba 100644
--- a/src/cong-menus.c
+++ b/src/cong-menus.c
@@ -1469,7 +1469,7 @@ action_callback_help (GtkAction *action,
 
 	if(error!=NULL)
 	{
-		g_warning(error->message);
+		g_warning("%s", error->message);
 		g_error_free(error);
 	}
 }
diff --git a/src/plugin-sgml.c b/src/plugin-sgml.c
index 523aead..b6dce10 100644
--- a/src/plugin-sgml.c
+++ b/src/plugin-sgml.c
@@ -166,7 +166,7 @@ sgml_importer_action_callback(CongServiceImporter *importer, const gchar *uri, c
 		return;		
 	}
 
-	g_message(standard_error);
+	g_message("%s", standard_error);
 
 	/* Attempt to parse the stdout into an xmlDocPtr: */
 	{



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