diff options
Diffstat (limited to '')
-rw-r--r-- | src/wchar/wcscncpy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wchar/wcscncpy.c b/src/wchar/wcscncpy.c index 91af467..fe0a14f 100644 --- a/src/wchar/wcscncpy.c +++ b/src/wchar/wcscncpy.c @@ -49,7 +49,7 @@ wchar_t* wcscncpy(wchar_t* restrict whither, const wchar_t* restrict whence, wch 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; } |