]> mj.ucw.cz Git - libucw.git/commitdiff
Oops, breadb() was wrong.
authorMartin Mares <mj@ucw.cz>
Mon, 19 Feb 2001 19:08:56 +0000 (19:08 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 19 Feb 2001 19:08:56 +0000 (19:08 +0000)
lib/fastbuf.c

index e9de62df425c9f1cf20c437eafa29205c8c1bfcb..2d00bf05687f7252c1fa26a4847559644b6530df 100644 (file)
@@ -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;
 }