aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/callproc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/callproc.c b/src/callproc.c
index da3654a3411..8c6df89ea7e 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -797,13 +797,12 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
797 797
798 TEMP_SET_PT_BOTH (PT + process_coding.produced_char, 798 TEMP_SET_PT_BOTH (PT + process_coding.produced_char,
799 PT_BYTE + process_coding.produced); 799 PT_BYTE + process_coding.produced);
800 nread -= process_coding.consumed; 800 carryover = process_coding.carryover_bytes;
801 carryover = nread;
802 if (carryover > 0) 801 if (carryover > 0)
803 /* As CARRYOVER should not be that large, we had 802 /* As CARRYOVER should not be that large, we had
804 better avoid overhead of bcopy. */ 803 better avoid overhead of bcopy. */
805 BCOPY_SHORT (bufptr + process_coding.consumed, bufptr, 804 BCOPY_SHORT (process_coding.carryover, bufptr,
806 carryover); 805 process_coding.carryover_bytes);
807 } 806 }
808 } 807 }
809 808