# HG changeset patch # User David Kastrup # Date 1047250088 0 # Node ID df60111d03792de03c8a890e91fe52bf6d432a0c # Parent 747150fd554a6d83ebd9f6317bae6472d995bfd5 (read_process_output): We have allocated enough space for readmax and carryover, so actually use the alloted space. diff -r 747150fd554a -r df60111d0379 src/process.c --- a/src/process.c Sun Mar 09 22:47:22 2003 +0000 +++ b/src/process.c Sun Mar 09 22:48:08 2003 +0000 @@ -4463,18 +4463,18 @@ 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