From 2930ebb40619e94e7e8485a919b67cf39a4e5c0a Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 31 Jan 1989 10:33:59 +0000 Subject: [PATCH] fixed bug: OO_halfflush did not work properly --- modules/src/em_opt/nopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/src/em_opt/nopt.c b/modules/src/em_opt/nopt.c index be4e51483..2519298fa 100644 --- a/modules/src/em_opt/nopt.c +++ b/modules/src/em_opt/nopt.c @@ -188,7 +188,7 @@ OO_halfflush() for(p=OO_buffer,i=n;i--;) C_out(p++); /* now copy the rest of buffer and pattern back */ - BTSCPY(p,q,i,OO_buffer,OO_buffer+n,n+(OO_nxtpatt-OO_buffer)); + BTSCPY(p,q,i,OO_buffer,OO_buffer+n,(OO_nxtpatt-OO_buffer)-n); OO_patternqueue -= n; OO_nxtpatt -= n; printstate("after Half flush");