aboutsummaryrefslogtreecommitdiff
path: root/common/string.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-09-25 14:56:43 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-09-25 14:56:43 +0300
commit2d173beb3392aff35c8a33f4ac001bf63bb9adc6 (patch)
tree3b9dc8dc03276f5ead11f2e3613536c7f11c6b18 /common/string.c
parent13fe461374c0716404e2ee7726781b9cd12dbaa7 (diff)
downloadkmi-2d173beb3392aff35c8a33f4ac001bf63bb9adc6.tar.gz
kmi-2d173beb3392aff35c8a33f4ac001bf63bb9adc6.zip
Used memory regions now marked
+ I don't fully trust my memory management system yet, so should probably check the memory regions it gives.
Diffstat (limited to 'common/string.c')
-rw-r--r--common/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/string.c b/common/string.c
index 0870b78..810a703 100644
--- a/common/string.c
+++ b/common/string.c
@@ -251,7 +251,7 @@ __weak void *memset(void *ptr, int value, size_t num)
char c = value;
while (num--)
- *(p--) = c;
+ *(p++) = c;
return ptr;
}