g_message with variable
authorMikael Magnusson <mikachu@gmail.com>
Fri, 19 Feb 2010 21:13:32 +0000 (22:13 +0100)
committerMikael Magnusson <mikachu@gmail.com>
Fri, 19 Feb 2010 21:13:32 +0000 (22:13 +0100)
openbox/openbox.c

index f19f064..12fb2f6 100644 (file)
@@ -711,7 +711,7 @@ static Cursor load_cursor(const gchar *name, guint fontval)
 
 void ob_exit_with_error(const gchar *msg)
 {
 
 void ob_exit_with_error(const gchar *msg)
 {
-    g_message(msg);
+    g_message("%s", msg);
     session_shutdown(TRUE);
     exit(EXIT_FAILURE);
 }
     session_shutdown(TRUE);
     exit(EXIT_FAILURE);
 }