From cfd732bf170ee189037e0b627de7991bdb1dee0e Mon Sep 17 00:00:00 2001 From: Ishna Jain Date: Fri, 5 Jul 2024 18:13:43 +0530 Subject: [PATCH] [memcpy] fixed return value Issue : #299 --- src/lib/libc/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/libc/string.c b/src/lib/libc/string.c index 8577fc4d..433704a8 100644 --- a/src/lib/libc/string.c +++ b/src/lib/libc/string.c @@ -49,7 +49,7 @@ void *memcpy(void *i, const void *j, size_t size) { *dst++ = *src++; } - return i; + return dst; } void *memmove(void *i, const void *j, size_t size)