aboutsummaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2008-07-02 19:35:02 +0000
committerRoland McGrath <roland@gnu.org>2008-07-02 19:35:02 +0000
commitd5a0160b583dbd08d77c999c2acc4b72c2a6d9db (patch)
treeaa8b2bb2a11412921cf6f6635ef8e57826097269 /hurd
parent0a583b5419a785591ba9607f32e4bc0d18c838e2 (diff)
downloadglibc-d5a0160b583dbd08d77c999c2acc4b72c2a6d9db.tar
glibc-d5a0160b583dbd08d77c999c2acc4b72c2a6d9db.tar.gz
glibc-d5a0160b583dbd08d77c999c2acc4b72c2a6d9db.tar.bz2
glibc-d5a0160b583dbd08d77c999c2acc4b72c2a6d9db.zip
* sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.cvs/fedora-glibc-20080703T1203
* sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise. * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise. * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD. * hurd/get-host.c (_hurd_get_host_config): Likewise. * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/fd-read.c1
-rw-r--r--hurd/get-host.c1
2 files changed, 2 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;
diff --git a/hurd/get-host.c b/hurd/get-host.c
index bebad892cf..3fe0b3ef78 100644
--- a/hurd/get-host.c
+++ b/hurd/get-host.c
@@ -51,6 +51,7 @@ _hurd_get_host_config (const char *item, char *buf, size_t buflen)
}
data = buf;
+ nread = buflen;
err = __io_read (config, &data, &nread, -1, buflen);
if (! err)
/* Check if there is more in the file we didn't read. */