From aa9a3e9ddff81327d5735c41aa960051ff9a8fd5 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 19 Feb 2001 19:08:56 +0000 Subject: [PATCH] Oops, breadb() was wrong. --- lib/fastbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5