diff options
author | Roland McGrath <roland@gnu.org> | 2000-11-13 21:31:17 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2000-11-13 21:31:17 +0000 |
commit | 8c654609042f506897b72f4b034735c8b53cf2a6 (patch) | |
tree | 9004c4a22063500c2c1eb0e9435ee2c5b36a78ac /hurd | |
parent | fbfdeab348c3173bb9607565efab2882e92e0965 (diff) | |
download | glibc-8c654609042f506897b72f4b034735c8b53cf2a6.zip glibc-8c654609042f506897b72f4b034735c8b53cf2a6.tar.gz glibc-8c654609042f506897b72f4b034735c8b53cf2a6.tar.bz2 |
2000-11-13 Roland McGrath <roland@frob.com>
* hurd/get-host.c (_hurd_get_host_config): Fix last change.
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/get-host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hurd/get-host.c b/hurd/get-host.c index 93890c7..2794eec 100644 --- a/hurd/get-host.c +++ b/hurd/get-host.c @@ -72,7 +72,7 @@ _hurd_get_host_config (const char *item, char *buf, size_t buflen) } /* Remove newlines in case someone wrote the file by hand. */ - while (buf[nread - 1] == '\n' && nread > 0) + while (nread > 0 && buf[nread - 1] == '\n') buf[--nread] = '\0'; /* Null-terminate the result if there is enough space. */ |