summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/string/mempcpy.c3
1 files changed, 1 insertions, 2 deletions
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;
}