diff options
Diffstat (limited to 'src/wchar/wcsncpy.c')
-rw-r--r-- | src/wchar/wcsncpy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wchar/wcsncpy.c b/src/wchar/wcsncpy.c index 56f342d..67631b1 100644 --- a/src/wchar/wcsncpy.c +++ b/src/wchar/wcsncpy.c @@ -37,7 +37,7 @@ wchar_t* wcsncpy(wchar_t* restrict whither, const wchar_t* restrict whence, size { size_t n = wcsnlen(whence, maxlen); wmemcpy(whither, whence, n); - wmemset(whither, 0, maxlen - n); + wmemset(whither + n, 0, maxlen - n); return whither; } |