From d5a0160b583dbd08d77c999c2acc4b72c2a6d9db Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 2 Jul 2008 19:35:02 +0000 Subject: * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS. * 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. --- hurd/get-host.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hurd/get-host.c') 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. */ -- cgit v1.2.3