X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstring%2Fwcpncpy.c;h=b667f6d6a8dbb5f96b1fdf21f44384aa561a8447;hb=d62f4e98881702f07501b965e5beebd7516deca2;hp=aef8096237cd7db0bacb8b47d8daf85c5bd9bf88;hpb=e0614f7cd418afedd06c9bcd5abb965608bc52f8;p=musl diff --git a/src/string/wcpncpy.c b/src/string/wcpncpy.c index aef80962..b667f6d6 100644 --- a/src/string/wcpncpy.c +++ b/src/string/wcpncpy.c @@ -1,6 +1,6 @@ #include -wchar_t *wcpncpy(wchar_t *d, const wchar_t *s, size_t n) +wchar_t *wcpncpy(wchar_t *restrict d, const wchar_t *restrict s, size_t n) { return wcsncpy(d, s, n) + wcsnlen(s, n); }