diff options
Diffstat (limited to 'src/string/strn/stpnmove.c')
-rw-r--r-- | src/string/strn/stpnmove.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string/strn/stpnmove.c b/src/string/strn/stpnmove.c index a0a0de9..917b753 100644 --- a/src/string/strn/stpnmove.c +++ b/src/string/strn/stpnmove.c @@ -41,7 +41,7 @@ char* stpnmove(char* whither, const char* whence, size_t maxlen) { size_t n = strnlen(whence, maxlen); memmove(whither, whence, n); - memset(whither, 0, maxlen - n); + memset(whither + n, 0, maxlen - n); return whither + n; } |