X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstring%2Fstrlcpy.c;h=6aeb106aa2e032c4d392631bb8fa9dd8a9f2e8bb;hb=d12f2ed282745db172cbb37b18717ad0b8e3c534;hp=bbebf1db5ec6d27ea092af4be4bfedb933275641;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/string/strlcpy.c b/src/string/strlcpy.c index bbebf1db..6aeb106a 100644 --- a/src/string/strlcpy.c +++ b/src/string/strlcpy.c @@ -21,7 +21,7 @@ size_t strlcpy(char *d, const char *s, size_t n) if (n && *s) { wd=(void *)d; ws=(const void *)s; for (; n>=sizeof(size_t) && !HASZERO(*ws); - n-=sizeof(size_t), ws++, *wd++) *wd = *ws; + n-=sizeof(size_t), ws++, wd++) *wd = *ws; d=(void *)wd; s=(const void *)ws; } }