strdup the exec path cuz it gets freed by the time we restart otherwise
authorDana Jansens <danakj@orodu.net>
Sat, 21 Jun 2003 18:14:42 +0000 (18:14 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 21 Jun 2003 18:14:42 +0000 (18:14 +0000)
openbox/action.c

index d341c9c..e166dd8 100644 (file)
@@ -1118,7 +1118,7 @@ void action_moveresize(union ActionData *data)
 
 void action_restart(union ActionData *data)
 {
-    ob_restart_path = data->execute.path;
+    ob_restart_path = g_strdup(data->execute.path);
     ob_shutdown = ob_restart = TRUE;
 }