X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fstring%2Fwcpncpy.c;h=b667f6d6a8dbb5f96b1fdf21f44384aa561a8447;hp=aef8096237cd7db0bacb8b47d8daf85c5bd9bf88;hb=2bf469310de6793228c103691859ed4d3158b117;hpb=e0614f7cd418afedd06c9bcd5abb965608bc52f8 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); }