From: Martin Mares Date: Mon, 19 Feb 2001 19:08:56 +0000 (+0000) Subject: Oops, breadb() was wrong. X-Git-Tag: holmes-import~1546 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=aa9a3e9ddff81327d5735c41aa960051ff9a8fd5;p=libucw.git Oops, breadb() was wrong. --- diff --git a/lib/fastbuf.c b/lib/fastbuf.c index e9de62df..2d00bf05 100644 --- a/lib/fastbuf.c +++ b/lib/fastbuf.c @@ -209,7 +209,7 @@ uns bread_slow(struct fastbuf *f, void *b, uns l, uns check) l -= k; total += k; } - if (check && total && total != l) + if (check && total && l) die("breadb: short read"); return total; }