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