summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2016-01-13 21:49:01 +0000
committerBrooks Davis <brooks@FreeBSD.org>2016-01-13 21:49:01 +0000
commitcd3dbc2573cd943a968260679a48ffca39080ceb (patch)
tree8b20e810cebe226e764bb71f98eef7b4142f5366
parente12a9f251e52ebf9c7b48467103760e68bbf362b (diff)
Notes
-rw-r--r--lib/libc/string/wcsncat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/string/wcsncat.c b/lib/libc/string/wcsncat.c
index 44f1ff98980c8..5a243477db5be 100644
--- a/lib/libc/string/wcsncat.c
+++ b/lib/libc/string/wcsncat.c
@@ -48,7 +48,7 @@ wcsncat(wchar_t * __restrict s1, const wchar_t * __restrict s2, size_t n)
p++;
q = p;
r = s2;
- while (*r && n) {
+ while (n && *r) {
*q++ = *r++;
n--;
}