(Fcall_process): Calculate CARRYOVER correctly.
authorKenichi Handa <handa@m17n.org>
Tue, 3 Mar 1998 01:29:16 +0000 (01:29 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 3 Mar 1998 01:29:16 +0000 (01:29 +0000)
src/callproc.c

index 3d117f5..7dc30da 100644 (file)
@@ -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