diff options
Diffstat (limited to 'kernel/libc/string/memset.c')
-rw-r--r-- | kernel/libc/string/memset.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/libc/string/memset.c b/kernel/libc/string/memset.c index 5d7de62..34fd507 100644 --- a/kernel/libc/string/memset.c +++ b/kernel/libc/string/memset.c @@ -2,8 +2,9 @@ void *memset(void *dst, const unsigned char c, u32 n) { uintptr_t d = (uintptr_t)dst; - for (u32 i = 0; i < n; i++, d++) + for (u32 i = 0; i < n; i++, d++) { *(unsigned char *)d = c; + } return (void *)d; } |