AUDIT: r17214 - gnucash/trunk/src/core-utils - Fix Scheme logging bug in core-utils by treating strings as generic strings rather than format strings.

Charles Day cedayiv at cvs.gnucash.org
Wed Jun 11 11:37:50 EDT 2008


Author: cedayiv
Date: 2008-06-11 11:37:50 -0400 (Wed, 11 Jun 2008)
New Revision: 17214
Trac: http://svn.gnucash.org/trac/changeset/17214

Modified:
   gnucash/trunk/src/core-utils/gnc-glib-utils.c
Log:
Fix Scheme logging bug in core-utils by treating strings as generic strings rather than format strings.
BP


Modified: gnucash/trunk/src/core-utils/gnc-glib-utils.c
===================================================================
--- gnucash/trunk/src/core-utils/gnc-glib-utils.c	2008-06-11 12:52:27 UTC (rev 17213)
+++ gnucash/trunk/src/core-utils/gnc-glib-utils.c	2008-06-11 15:37:50 UTC (rev 17214)
@@ -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