summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}