iconv: fix missing bounds checking for shift_jis decoding
[musl.git] / src / string / wcpncpy.c
blobb667f6d6a8dbb5f96b1fdf21f44384aa561a8447
1 #include <wchar.h>
3 wchar_t *wcpncpy(wchar_t *restrict d, const wchar_t *restrict s, size_t n)
5 return wcsncpy(d, s, n) + wcsnlen(s, n);