about summary refs log tree commit diff
path: root/hurd/get-host.c
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/get-host.c')
-rw-r--r--hurd/get-host.c1
1 files changed, 1 insertions, 0 deletions
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.  */