summaryrefslogtreecommitdiff
path: root/libstore
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-12-30 03:09:40 +0000
committerRoland McGrath <roland@gnu.org>2001-12-30 03:09:40 +0000
commitb4d4f46055c9cf706eb73b4c2115a0cb13f86cb3 (patch)
tree0b3c96e663420aef147938b430a55ec4e6878eee /libstore
parent379c7dad57fe9a3d22490f599c3c8e1e62dd7c8f (diff)
2001-12-29 Roland McGrath <roland@frob.com>
* nbd.c (nbdopen): Fix in last change. (nbd_read): Let LEN receive the result count from io_read.
Diffstat (limited to 'libstore')
-rw-r--r--libstore/nbd.c2
1 files changed, 1 insertions, 1 deletions
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;
}