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