execl must terminate with null pointer, not 0.
[rogue-pphs.git] / mdport.c
index eb33c32..03ebaf1 100644 (file)
--- a/mdport.c
+++ b/mdport.c
@@ -357,7 +357,7 @@ md_shellescape()
          */\r
         setuid(getuid());\r
         setgid(getgid());\r
-        execl(sh == NULL ? "/bin/sh" : sh, "shell", "-i", 0);\r
+        execl(sh == NULL ? "/bin/sh" : sh, "shell", "-i", (char *)0);\r
         perror("No shelly");\r
         _exit(-1);\r
     }\r