summaryrefslogtreecommitdiff
path: root/src/shared/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/mem.c')
-rw-r--r--src/shared/mem.c2
1 files changed, 1 insertions, 1 deletions
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;
}