diff options
author | quou <quou@disroot.org> | 2024-12-30 10:18:29 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-30 10:18:29 +1100 |
commit | acf7b8cc57a39ba7427a2434ac76b1b293fafc8f (patch) | |
tree | 614e3022908afd7ca73f2b17f246400ba2e51208 /qstd | |
parent | 98a8acd5bdb0bb62c836db987b243230fa0a0066 (diff) |
Fix arena size check
Diffstat (limited to 'qstd')
-rw-r--r-- | qstd/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qstd/memory.c b/qstd/memory.c index 61c5911..1dac1c5 100644 --- a/qstd/memory.c +++ b/qstd/memory.c @@ -45,7 +45,7 @@ void* imp_arena_alloc( int size ) { char* r; - assert(a->ptr + size < a->size); + assert(a->ptr + size <= a->size); r = &a->buf[a->ptr]; a->ptr += size; return r; |