]> Dogcows Code - chaz/openbox/commitdiff
nullterminate arguments to execlp
authorMikael Magnusson <mikachu@comhem.se>
Fri, 1 Apr 2005 13:04:55 +0000 (13:04 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Fri, 1 Apr 2005 13:04:55 +0000 (13:04 +0000)
openbox/openbox.c

index a94c22c6573644d217ac3276743fe9819094d1bb..6ada770adaafbc3e8c83623e495d6f18323e1cf9 100644 (file)
@@ -326,7 +326,8 @@ gint main(gint argc, gchar **argv)
 
         /* re-run me */
         execvp(argv[0], argv); /* try how we were run */
-        execlp(argv[0], g_path_get_basename(argv[0])); /* last resort */
+        execlp(argv[0], g_path_get_basename(argv[0]),
+               (char *)NULL); /* last resort */
     }
      
     return exitcode;
This page took 0.028313 seconds and 4 git commands to generate.