From b4d4f46055c9cf706eb73b4c2115a0cb13f86cb3 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 30 Dec 2001 03:09:40 +0000 Subject: 2001-12-29 Roland McGrath * nbd.c (nbdopen): Fix in last change. (nbd_read): Let LEN receive the result count from io_read. --- libstore/nbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstore/nbd.c b/libstore/nbd.c index 547d3bd6..74c77848 100644 --- a/libstore/nbd.c +++ b/libstore/nbd.c @@ -192,7 +192,7 @@ nbd_read (struct store *store, err = read_reply (store, req.handle); if (err == 0) - err = io_read (store->port, (char **) buf, &cc, (off_t) -1, amount); + err = io_read (store->port, (char **) buf, len, (off_t) -1, amount); return err; } -- cgit v1.2.3