diff options
Diffstat (limited to 'libstore/nbd.c')
-rw-r--r-- | libstore/nbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstore/nbd.c b/libstore/nbd.c index 8bd00c4d..3138af01 100644 --- a/libstore/nbd.c +++ b/libstore/nbd.c @@ -1,5 +1,5 @@ /* "Network Block Device" store backend compatible with Linux `nbd' driver - Copyright (C) 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 2001, 2002, 2008 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -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; |