summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2006-05-24 02:47:57 +0000
committersabetts <sabetts>2006-05-24 02:47:57 +0000
commitcaf95d546d92f07077f9d121c47bf45ff0807744 (patch)
treec1cd71edbf2fedb247623fd76a63285303dba463
parent4fbb5009496ef087a9c3c96d5bc1c28f23502005 (diff)
downloadratpoison-caf95d546d92f07077f9d121c47bf45ff0807744.zip
* src/actions.c (spawn): pass NULL to execcl
-rw-r--r--ChangeLog2
-rw-r--r--src/actions.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6382b73..643013e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2006-05-23 Shawn Betts <sabetts@vcn.bc.ca>
+ * src/actions.c (spawn): pass NULL to execcl
+
* src/xinerama.c (free_xinerama): take void arguments. prototype updated.
(init_xinerama): likewise
diff --git a/src/actions.c b/src/actions.c
index 3674d28..8ace412 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -2484,8 +2484,8 @@ spawn(char *cmd, int raw)
#endif
/* raw means don't run it through sh. */
if (raw)
- execl (cmd, 0);
- execl("/bin/sh", "sh", "-c", cmd, 0);
+ execl (cmd, NULL);
+ execl("/bin/sh", "sh", "-c", cmd, NULL);
_exit(EXIT_FAILURE);
}