diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2016-01-22 00:13:18 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2016-01-22 00:13:18 +0000 |
| commit | 65ef8d1f4ca27fd4f88bcc17e4d37f9285b4b8ed (patch) | |
| tree | 53881482accedd8b8fe4b08ffb0c1a54450545de /lib/libc | |
| parent | fa6179d17d705b5bc73a89bceb147a9ed9a0b3d1 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/string/wcslcat.c | 2 |
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; |
