diff --git a/src/string/mempcpy.c b/src/string/mempcpy.c index 1b323f1e..c23ca69e 100644 --- a/src/string/mempcpy.c +++ b/src/string/mempcpy.c @@ -2,6 +2,5 @@ void *mempcpy(void *dest, const void *src, size_t n) { - memcpy(dest, src, n); - return (char *)dest + n; + return (char *)memcpy(dest, src, n) + n; }