projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbfdeab
)
2000-11-13 Roland McGrath <roland@frob.com>
author
Roland McGrath
<roland@gnu.org>
Mon, 13 Nov 2000 21:31:17 +0000
(21:31 +0000)
committer
Roland McGrath
<roland@gnu.org>
Mon, 13 Nov 2000 21:31:17 +0000
(21:31 +0000)
* hurd/get-host.c (_hurd_get_host_config): Fix last change.
hurd/get-host.c
patch
|
blob
|
history
diff --git
a/hurd/get-host.c
b/hurd/get-host.c
index
93890c7
..
2794eec
100644
(file)
--- 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. */