浏览代码

* system.c (sys_spawn_shell): Cast trailing null to (char *).

Paul Eggert 21 年之前
父节点
当前提交
b7ed638806
共有 2 个文件被更改,包括 6 次插入1 次删除
  1. 5 0
      ChangeLog
  2. 1 1
      src/system.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2003-10-26  Paul Eggert  <eggert@twinsun.com>
+
+	* system.c (sys_spawn_shell): Cast trailing null to (char *).
+	Bug reported by Christian Weisgerber.
+
 2003-10-19  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
 2003-10-19  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
 
 
 	* AUTHORS: Updated
 	* AUTHORS: Updated

+ 1 - 1
src/system.c

@@ -214,7 +214,7 @@ sys_spawn_shell ()
   child = xfork ();
   child = xfork ();
   if (child == 0)
   if (child == 0)
     {
     {
-      execlp (shell, "-sh", "-i", 0);
+      execlp (shell, "-sh", "-i", (char *) 0);
       exec_fatal (shell);
       exec_fatal (shell);
     }
     }
   else
   else