projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
posix_spawn: honor POSIX_SPAWN_SETSIGDEF flag
[oweals/musl.git]
/
src
/
string
/
wcsncat.c
diff --git
a/src/string/wcsncat.c
b/src/string/wcsncat.c
index b07abe455b23c5fe1bf36e7a3dba1250edae88ad..9d61bbbd61cecfb5d69a623ded1f751d6a5d1d84 100644
(file)
--- a/
src/string/wcsncat.c
+++ b/
src/string/wcsncat.c
@@
-4,7
+4,7
@@
wchar_t *wcsncat(wchar_t *d, const wchar_t *s, size_t n)
{
wchar_t *a = d;
d += wcslen(d);
- while (n &&
(*d++ = *s++)) n--
;
+ while (n &&
*s) n--, *d++ = *s++
;
*d++ = 0;
return a;
}