]> Dogcows Code - chaz/openbox/commitdiff
don't use a variable as a format string
authorDana Jansens <danakj@orodu.net>
Wed, 17 Feb 2010 16:44:12 +0000 (11:44 -0500)
committerDana Jansens <danakj@orodu.net>
Wed, 17 Feb 2010 16:44:12 +0000 (11:44 -0500)
openbox/actions/execute.c

index 18daf78467f07bf33661d584b6b4de2a0bbe4f28..fdce77b7c1c3cbbd647e36f49ce2a7ee21264b7f 100644 (file)
@@ -232,7 +232,7 @@ static gboolean run_func(ObActionsData *data, gpointer options)
 
     e = NULL;
     if (!g_shell_parse_argv(cmd, NULL, &argv, &e)) {
-        g_message(e->message, o->cmd);
+        g_message("%s", e->message);
         g_error_free(e);
     }
     else {
@@ -254,7 +254,7 @@ static gboolean run_func(ObActionsData *data, gpointer options)
                            G_SPAWN_DO_NOT_REAP_CHILD,
                            NULL, NULL, NULL, &e);
         if (!ok) {
-            g_message(e->message, o->cmd);
+            g_message("%s", e->message);
             g_error_free(e);
         }
 
This page took 0.024342 seconds and 4 git commands to generate.