diff options
author | dzwdz | 2022-07-05 22:28:09 +0200 |
---|---|---|
committer | dzwdz | 2022-07-05 22:28:09 +0200 |
commit | b16ab3edc8d3f3d5bcbe0afc8dec3e9ed822a224 (patch) | |
tree | 943b124227a62f53e869ba4d7b6ec8d427c10f7c /src/shared/mem.c | |
parent | 60d099a65ccd9e1eb431f61b8009e7f8cec15a0f (diff) |
shared: fix memset
Diffstat (limited to 'src/shared/mem.c')
-rw-r--r-- | src/shared/mem.c | 2 |
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; } |