aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2014-08-21 02:40:33 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2014-08-21 02:40:33 +0000
commit0fa46a42318ad56f1414d2822c6ab82e72dde6fa (patch)
tree4246d524af7501e4f9968d21bc586d16a77a75fa /libexec
parentf8cdacdd185481cc34c8241acf12e92eb71bca44 (diff)
Notes
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/libmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rtld-elf/libmap.c b/libexec/rtld-elf/libmap.c
index 8b5faf889edf1..691ad5206d0a1 100644
--- a/libexec/rtld-elf/libmap.c
+++ b/libexec/rtld-elf/libmap.c
@@ -216,14 +216,14 @@ lmc_parse(char *lm_p, size_t lm_len)
p = NULL;
while (cnt < lm_len) {
i = 0;
- while (lm_p[cnt] != '\n' && cnt < lm_len &&
+ while (cnt < lm_len && lm_p[cnt] != '\n' &&
i < sizeof(line) - 1) {
line[i] = lm_p[cnt];
cnt++;
i++;
}
line[i] = '\0';
- while (lm_p[cnt] != '\n' && cnt < lm_len)
+ while (cnt < lm_len && lm_p[cnt] != '\n')
cnt++;
/* skip over nl */
cnt++;