From b16ab3edc8d3f3d5bcbe0afc8dec3e9ed822a224 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 5 Jul 2022 22:28:09 +0200 Subject: shared: fix memset --- src/shared/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/mem.c b/src/shared/mem.c index 0b03b58..49b3588 100644 --- a/src/shared/mem.c +++ b/src/shared/mem.c @@ -39,7 +39,7 @@ void *memcpy(void *dest, const void *src, size_t n) { void *memset(void *s, int c, size_t n) { uint8_t *s2 = s; - for (size_t i = 0; i < n; n++) + for (size_t i = 0; i < n; i++) s2[i] = c; return s; } -- cgit v1.2.3