diff options
Diffstat (limited to 'lib/libc/src/string/memset.c')
-rw-r--r-- | lib/libc/src/string/memset.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/src/string/memset.c b/lib/libc/src/string/memset.c index 928441a..ecceffa 100644 --- a/lib/libc/src/string/memset.c +++ b/lib/libc/src/string/memset.c @@ -32,9 +32,8 @@ void * memset(void *s, int c, size_t n) { - for (size_t i = 0; i < n; i++) { + for (size_t i = 0; i < n; i++) ((char *)s)[i] = (char)c; - } return s; } |