author | Rich Felker <dalias@aerifal.cx> | 2012年09月06日 22:44:55 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012年09月06日 22:44:55 -0400 |
commit | 400c5e5c8307a2ebe44ef1f203f5a15669f20347 (patch) | |
tree | 087a48dc8251fa05f6866af8ebf96b69450b15ab /src/string/wcpncpy.c | |
parent | bac03cdde1137c16b4c194e137310e2748661dcc (diff) | |
download | musl-400c5e5c8307a2ebe44ef1f203f5a15669f20347.tar.gz |
-rw-r--r-- | src/string/wcpncpy.c | 2 |
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.h> -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); } |