From ecfc344ba3594cc3d9f738f7c556bee6a3e1bae6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 14 Sep 2005 14:04:19 +0000 Subject: [PATCH] Oops, one really cannot skip bflush() there, because it's needed as a barrier between reads and writes. --- lib/fastbuf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/fastbuf.c b/lib/fastbuf.c index 59a923ba..f83b4021 100644 --- a/lib/fastbuf.c +++ b/lib/fastbuf.c @@ -339,8 +339,7 @@ bconfig(struct fastbuf *f, uns item, int value) void brewind(struct fastbuf *f) { - if (f->bptr > f->bstop) - bflush(f); + bflush(f); bsetpos(f, 0); } -- 2.39.2