projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fc31cd
)
nullterminate arguments to execlp
author
Mikael Magnusson
<mikachu@comhem.se>
Fri, 1 Apr 2005 13:04:55 +0000
(13:04 +0000)
committer
Mikael Magnusson
<mikachu@comhem.se>
Fri, 1 Apr 2005 13:04:55 +0000
(13:04 +0000)
openbox/openbox.c
patch
|
blob
|
history
diff --git
a/openbox/openbox.c
b/openbox/openbox.c
index a94c22c6573644d217ac3276743fe9819094d1bb..6ada770adaafbc3e8c83623e495d6f18323e1cf9 100644
(file)
--- 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;