From: Richard M. Stallman Date: Sun, 28 Dec 1997 19:19:00 +0000 (+0000) Subject: (Fcall_process): Cast new_argv for child_setup. X-Git-Tag: emacs-20.3~2549 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2d607244557193225aa2770fabc6eb72d74bcbd0;p=emacs.git (Fcall_process): Cast new_argv for child_setup. --- diff --git a/src/callproc.c b/src/callproc.c index 4ded0e8efa5..697a3befb1d 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -210,6 +210,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") char *bufptr = buf; int bufsize = 16384; int count = specpdl_ptr - specpdl; + register unsigned char **new_argv = (unsigned char **) alloca ((max (2, nargs - 2)) * sizeof (char *)); struct buffer *old = current_buffer; @@ -579,7 +580,8 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") } #else /* not MSDOS */ #ifdef WINDOWSNT - pid = child_setup (filefd, fd1, fd_error, new_argv, 0, current_dir); + pid = child_setup (filefd, fd1, fd_error, (char **) new_argv, + 0, current_dir); #else /* not WINDOWSNT */ pid = vfork (); @@ -595,7 +597,8 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") #else setpgrp (pid, pid); #endif /* USG */ - child_setup (filefd, fd1, fd_error, new_argv, 0, current_dir); + child_setup (filefd, fd1, fd_error, (char **) new_argv, + 0, current_dir); } #endif /* not WINDOWSNT */