diff options
Diffstat (limited to '')
-rw-r--r-- | src/wchar/wcsstrnmove.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wchar/wcsstrnmove.c b/src/wchar/wcsstrnmove.c index f19b4f4..d72bd9c 100644 --- a/src/wchar/wcsstrnmove.c +++ b/src/wchar/wcsstrnmove.c @@ -48,7 +48,7 @@ wchar_t* wcsstrnmove(wchar_t* whither, const wchar_t* whence, const wchar_t* res 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; } |