]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fcall_process): Avoid storing alloca result
authorRichard M. Stallman <rms@gnu.org>
Sat, 28 Jun 1997 23:45:26 +0000 (23:45 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 28 Jun 1997 23:45:26 +0000 (23:45 +0000)
directly into array element.

src/callproc.c

index e90423e4dbed40cc83b37b0c933f9bb0175631ea..0de906c5879461b3090958c0aa43a5a694314ee5 100644 (file)
@@ -391,8 +391,10 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
            int size = encoding_buffer_size (&argument_coding,
                                             XSTRING (args[i])->size);
            int produced, dummy;
+           unsigned char *dummy = (unsigned char *) alloca (size);
 
-           new_argv[i - 3] = (unsigned char *) alloca (size);
+           /* The Irix 4.0 compiler barfs if we eliminate dummy.  */
+           new_argv[i - 3] = dummy;
            produced = encode_coding (&argument_coding,
                                      XSTRING (args[i])->data, new_argv[i - 3],
                                      XSTRING (args[i])->size, size, &dummy);