summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-06-04 20:44:56 +0200
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-06-04 20:44:56 +0200
commit06cba7be45f870664e4438ad27465ecfa6509092 (patch)
treea8bca126dc7b42b0e3fc75b46bee42caf4cc987c /contrib
parent9c6d83f07aae8ca9005e4764c7ee2eebc72cb00a (diff)
downloadratpoison-06cba7be45f870664e4438ad27465ecfa6509092.zip
contrib/sloppy.c: execl(3) wants a NULL pointer
from Ellington Santos, thanks!
Diffstat (limited to 'contrib')
-rw-r--r--contrib/sloppy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/sloppy.c b/contrib/sloppy.c
index 623e57e..cf69efb 100644
--- a/contrib/sloppy.c
+++ b/contrib/sloppy.c
@@ -44,7 +44,7 @@ spawn(char *cmd)
pid = fork();
if (pid == 0)
{
- execl("/bin/sh", "sh", "-c", cmd, 0);
+ execl("/bin/sh", "sh", "-c", cmd, (char *)NULL);
_exit(EXIT_FAILURE);
}
return pid;