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

This commit is contained in:
Paul Eggert
2003-10-27 05:41:15 +00:00
parent 5d0b6564f3
commit b7ed638806
2 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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