Description: Fix GCC type warning
authorviric <viriketo@gmail.com>
Sun, 20 Mar 2016 11:25:41 +0100
changeset 345 c8fd555369d1
parent 344 9be22a4aa695
child 346 90545736507e
Description: Fix GCC type warning
Author: Alexander Inyukhin <shurick@sectorb.msk.ru>
Forwarded: yes
Last-Update: 2012-05-27
env.c
--- a/env.c	Sun Mar 20 11:25:28 2016 +0100
+++ b/env.c	Sun Mar 20 11:25:41 2016 +0100
@@ -40,7 +40,7 @@
             if (p[1] != 1 && p[1] != 2)
                 close(p[1]);
             close(p[0]);
-            execlp("/bin/sh", "/bin/sh", "-c", command, 0);
+            execlp("/bin/sh", "/bin/sh", "-c", command, (char*)NULL);
             error("/bin/sh exec error");
         case -1:
             error("Fork error");