]> Dogcows Code - chaz/openbox/commitdiff
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 d341c9c389e2090f17d13f30869a27ba0f6e0881..e166dd8bdfff95bc37cbe266d07b38007c3619d5 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;
 }
 
This page took 0.02781 seconds and 4 git commands to generate.