aboutsummaryrefslogtreecommitdiff
path: root/libstore/nbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libstore/nbd.c')
-rw-r--r--libstore/nbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstore/nbd.c b/libstore/nbd.c
index 8bd00c4d..966a864e 100644
--- a/libstore/nbd.c
+++ b/libstore/nbd.c
@@ -199,7 +199,7 @@ nbd_read (struct store *store,
/* Read the first piece, which can go directly into the caller's buffer. */
databuf = *buf;
- databuflen = *len;
+ piecelen = databuflen = *len;
err = request_chunk (&databuf, &piecelen);
if (err)
return err;