summaryrefslogtreecommitdiff
path: root/src/shared/mem.c
diff options
context:
space:
mode:
authordzwdz2022-07-05 22:28:09 +0200
committerdzwdz2022-07-05 22:28:09 +0200
commitb16ab3edc8d3f3d5bcbe0afc8dec3e9ed822a224 (patch)
tree943b124227a62f53e869ba4d7b6ec8d427c10f7c /src/shared/mem.c
parent60d099a65ccd9e1eb431f61b8009e7f8cec15a0f (diff)
shared: fix memset
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;
}