From fee3f00c6d8a855b4372a0367e0b3e9dcea76699 Mon Sep 17 00:00:00 2001 From: steven-na Date: Fri, 21 Aug 2026 23:16:44 -0700 Subject: Added printf attr to log funcs --- README.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 831e3ac..1db9e64 100644 --- a/README.md +++ b/README.md @@ -21,3 +21,6 @@ - [ ] thread_pool - [ ] vec2sw - [ ] hashmap +- [x] Stupid bug + - In smart arena, when I create a scratch arena and allocate 10 bytes for a char pointer and change them all to non '\0' then end the arena, then create another scratch arena on the same global scratch, allocate 8 bytes and change them all to non '\0', this can not be used as a null terminated string because the byte after 8 (9 in the original buffer) is not a '\0'. + - Verdict: Leave it up to the user to allocate strlen+1 bytes. -- cgit v1.2.3