diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-08-19 17:44:21 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-08-19 17:44:21 +0000 |
commit | 47cb2424eba91644f6bebc8ea617fb8ae4332bdc (patch) | |
tree | e2220824887a645cec53d8ccaa930978b8f5a2e7 | |
parent | 2df6a8d148429848ac1bdb265f6cd5cd4807078f (diff) | |
download | emacs-EMACS_20_3.tar.gz |
(Fcall_process): Use malloc for decoding_buf.EMACS_20_3
-rw-r--r-- | src/callproc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c index 6a1cfbc2c46..f30087d09e4 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -677,7 +677,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") else { /* We have to decode the input. */ int size = decoding_buffer_size (&process_coding, nread); - char *decoding_buf = (char *) alloca (size); + char *decoding_buf = (char *) malloc (size); decode_coding (&process_coding, bufptr, decoding_buf, nread, size); @@ -689,6 +689,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") there's a possibility that the detection was done by insufficient data. So, we give up displaying on the fly. */ + free (decoding_buf); display_on_the_fly = 0; process_coding = saved_coding; carryover = nread; @@ -696,6 +697,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") } if (process_coding.produced > 0) insert (decoding_buf, process_coding.produced); + free (decoding_buf); carryover = nread - process_coding.consumed; if (carryover > 0) { |