about summary refs log tree commit diff
path: root/hurd/fd-read.c
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/fd-read.c')
-rw-r--r--hurd/fd-read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hurd/fd-read.c b/hurd/fd-read.c
index 55dbc24e93..388a4dbaf9 100644
--- a/hurd/fd-read.c
+++ b/hurd/fd-read.c
@@ -35,6 +35,7 @@ _hurd_fd_read (struct hurd_fd *fd, void *buf, size_t *nbytes, loff_t offset)
     }
 
   data = buf;
+  nread = *nbytes;
   if (err = HURD_FD_PORT_USE (fd, _hurd_ctty_input (port, ctty, readfd)))
     return err;