r17275 - gnucash/branches/2.2/src/core-utils - [r17214] Fix Scheme logging bug in core-utils by treating strings as generic strings rather than format strings.

Christian Stimming cstim at cvs.gnucash.org
Mon Jul 7 16:56:01 EDT 2008


Author: cstim
Date: 2008-07-07 16:56:01 -0400 (Mon, 07 Jul 2008)
New Revision: 17275
Trac: http://svn.gnucash.org/trac/changeset/17275

Modified:
   gnucash/branches/2.2/src/core-utils/gnc-glib-utils.c
Log:
[r17214] Fix Scheme logging bug in core-utils by treating strings as generic strings rather than format strings.

Originally by cedayiv.


Modified: gnucash/branches/2.2/src/core-utils/gnc-glib-utils.c
===================================================================
--- gnucash/branches/2.2/src/core-utils/gnc-glib-utils.c	2008-07-07 20:55:52 UTC (rev 17274)
+++ gnucash/branches/2.2/src/core-utils/gnc-glib-utils.c	2008-07-07 20:56:01 UTC (rev 17275)
@@ -269,25 +269,25 @@
 void
 gnc_scm_log_warn(const gchar *msg)
 {
-    g_log("gnc.scm", G_LOG_LEVEL_WARNING, msg);
+    g_log("gnc.scm", G_LOG_LEVEL_WARNING, "%s", msg);
 }
 
 void
 gnc_scm_log_error(const gchar *msg)
 {
-    g_log("gnc.scm", G_LOG_LEVEL_CRITICAL, msg);
+    g_log("gnc.scm", G_LOG_LEVEL_CRITICAL, "%s", msg);
 }
 
 void
 gnc_scm_log_msg(const gchar *msg)
 {
-    g_log("gnc.scm", G_LOG_LEVEL_MESSAGE, msg);
+    g_log("gnc.scm", G_LOG_LEVEL_MESSAGE, "%s", msg);
 }
 
 void
 gnc_scm_log_debug(const gchar *msg)
 {
-    g_log("gnc.scm", G_LOG_LEVEL_DEBUG, msg);
+    g_log("gnc.scm", G_LOG_LEVEL_DEBUG, "%s", msg);
 }
 
 void gnc_gpid_kill(GPid pid)



More information about the gnucash-changes mailing list