aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/src/string/memcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/src/string/memcpy.c')
-rw-r--r--lib/libc/src/string/memcpy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/src/string/memcpy.c b/lib/libc/src/string/memcpy.c
index 9851e07..efbf1bb 100644
--- a/lib/libc/src/string/memcpy.c
+++ b/lib/libc/src/string/memcpy.c
@@ -32,9 +32,8 @@
void *
memcpy(void *dest, const void *src, size_t n)
{
- for (size_t i = 0; i < n; i++) {
+ for (size_t i = 0; i < n; i++)
((char *)dest)[i] = ((char *)src)[i];
- }
return dest;
}