summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2016-01-20 19:26:04 +0000
committerBrooks Davis <brooks@FreeBSD.org>2016-01-20 19:26:04 +0000
commit34b2bbaacee7b74d7ffc00dd6d2051e8718c25e3 (patch)
tree54dd9454264e20b8a8a7b8001c564e44b646565e /lib/libc
parent0ce2ca3b595f2ff3fb6e4040bd52083947ca0b8d (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/string/wcslcat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/string/wcslcat.c b/lib/libc/string/wcslcat.c
index f5f1e1ee7559..2df94777d51f 100644
--- a/lib/libc/string/wcslcat.c
+++ b/lib/libc/string/wcslcat.c
@@ -54,7 +54,7 @@ wcslcat(wchar_t *dst, const wchar_t *src, size_t siz)
size_t dlen;
/* Find the end of dst and adjust bytes left but don't go past end */
- while (*d != '\0' && n-- != 0)
+ while (n-- != 0 && *d != '\0')
d++;
dlen = d - dst;
n = siz - dlen;