mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-29 19:48:19 +00:00
(Fcall_process): Avoid storing alloca result
directly into array element.
This commit is contained in:
parent
8ce9b63e7b
commit
67b50bf76a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user