From: Mikael Magnusson Date: Fri, 1 Apr 2005 13:04:55 +0000 (+0000) Subject: nullterminate arguments to execlp X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=465dd3fb53144663d93343bb1c6ac4ae1fb827b0;p=chaz%2Fopenbox nullterminate arguments to execlp --- diff --git a/openbox/openbox.c b/openbox/openbox.c index a94c22c6..6ada770a 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -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;