From: Joe Wreschnig Date: Thu, 4 Apr 2013 10:50:20 +0000 (+0200) Subject: execl must terminate with null pointer, not 0. X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=commitdiff_plain;h=dc2a9dbf021e23b51591df2fb04c476355ae26d6 execl must terminate with null pointer, not 0. --- diff --git a/mdport.c b/mdport.c index eb33c32..03ebaf1 100644 --- a/mdport.c +++ b/mdport.c @@ -357,7 +357,7 @@ md_shellescape() */ setuid(getuid()); setgid(getgid()); - execl(sh == NULL ? "/bin/sh" : sh, "shell", "-i", 0); + execl(sh == NULL ? "/bin/sh" : sh, "shell", "-i", (char *)0); perror("No shelly"); _exit(-1); }