From: Martin Mares Date: Wed, 14 Sep 2005 14:04:19 +0000 (+0000) Subject: Oops, one really cannot skip bflush() there, because it's needed as X-Git-Tag: holmes-import~737 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=ecfc344ba3594cc3d9f738f7c556bee6a3e1bae6;p=libucw.git Oops, one really cannot skip bflush() there, because it's needed as a barrier between reads and writes. --- 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); }