diff options
Diffstat (limited to '')
-rw-r--r-- | src/wchar/wcsstrncpy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wchar/wcsstrncpy.c b/src/wchar/wcsstrncpy.c index 89dd7f7..62ed24c 100644 --- a/src/wchar/wcsstrncpy.c +++ b/src/wchar/wcsstrncpy.c @@ -49,7 +49,7 @@ wchar_t* wcsstrncpy(wchar_t* restrict whither, const wchar_t* restrict whence, size_t n = stop == NULL ? wcsnlen(whence, maxlen) : (size_t)(stop - whence); wchar_t* r = stop == NULL ? NULL : (whither + n); wmemcpy(whither, whence, n); - wmemset(whither, 0, maxlen - n); + wmemset(whither + n, 0, maxlen - n); return r; } |