summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/callproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 3d117f52d6c..7dc30da41a8 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -712,7 +712,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
nread, size);
if (process_coding.produced > 0)
insert (decoding_buf, process_coding.produced);
- carryover = process_coding.produced - process_coding.consumed;
+ carryover = nread - process_coding.consumed;
if (carryover > 0)
{
/* As CARRYOVER should not be that large, we had