Mercurial > emacs
changeset 59937:89e653e08ed9
(sys_subshell): Properly terminate execlp argument list.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Sat, 05 Feb 2005 19:40:04 +0000 |
parents | 688b6f973ed9 |
children | efa471aa332e |
files | src/sysdep.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sysdep.c Sat Feb 05 19:23:12 2005 +0000 +++ b/src/sysdep.c Sat Feb 05 19:40:04 2005 +0000 @@ -1,6 +1,6 @@ /* Interfaces to system-dependent kernel and library entries. Copyright (C) 1985, 1986, 1987, 1988, 1993, 1994, 1995, 1999, 2000, 2001, - 2003, 2004 Free Software Foundation, Inc. + 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -869,7 +869,7 @@ if (pid == -1) write (1, "Can't execute subshell", 22); #else /* not WINDOWSNT */ - execlp (sh, sh, 0); + execlp (sh, sh, (char *) 0); write (1, "Can't execute subshell", 22); _exit (1); #endif /* not WINDOWSNT */