From: David Kastrup Date: Sun, 9 Mar 2003 22:48:08 +0000 (+0000) Subject: (read_process_output): We have allocated enough space X-Git-Tag: ttn-vms-21-2-B4~10959 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9e25126f0b57eb7f90e51b5b68d788547c79c7d9;p=emacs.git (read_process_output): We have allocated enough space for readmax and carryover, so actually use the alloted space. --- diff --git a/src/process.c b/src/process.c index 9790b7d29a6..6dc052e716b 100644 --- a/src/process.c +++ b/src/process.c @@ -4463,18 +4463,18 @@ read_process_output (proc, channel) if (DATAGRAM_CHAN_P (channel)) { int len = datagram_address[channel].len; - nbytes = recvfrom (channel, chars + carryover, readmax - carryover, + nbytes = recvfrom (channel, chars + carryover, readmax, 0, datagram_address[channel].sa, &len); } else #endif if (proc_buffered_char[channel] < 0) - nbytes = emacs_read (channel, chars + carryover, readmax - carryover); + nbytes = emacs_read (channel, chars + carryover, readmax); else { chars[carryover] = proc_buffered_char[channel]; proc_buffered_char[channel] = -1; - nbytes = emacs_read (channel, chars + carryover + 1, readmax - 1 - carryover); + nbytes = emacs_read (channel, chars + carryover + 1, readmax - 1); if (nbytes < 0) nbytes = 1; else