From 2d173beb3392aff35c8a33f4ac001bf63bb9adc6 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 25 Sep 2021 14:56:43 +0300 Subject: Used memory regions now marked + I don't fully trust my memory management system yet, so should probably check the memory regions it gives. --- common/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/string.c') 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; } -- cgit v1.3