aboutsummaryrefslogtreecommitdiffstats
path: root/src/wchar/wcpnmove.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wchar/wcpnmove.c')
-rw-r--r--src/wchar/wcpnmove.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wchar/wcpnmove.c b/src/wchar/wcpnmove.c
index f81caec..25a591a 100644
--- a/src/wchar/wcpnmove.c
+++ b/src/wchar/wcpnmove.c
@@ -41,7 +41,7 @@ wchar_t* wcpnmove(wchar_t* whither, const wchar_t* whence, size_t maxlen)
{
size_t n = wcsnlen(whence, maxlen);
wmemmove(whither, whence, n);
- wmemset(whither, 0, maxlen - n);
+ wmemset(whither + n, 0, maxlen - n);
return whither + n;
}