summaryrefslogtreecommitdiff
path: root/qstd/memory.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-30 10:18:29 +1100
committerquou <quou@disroot.org>2024-12-30 10:18:29 +1100
commitacf7b8cc57a39ba7427a2434ac76b1b293fafc8f (patch)
tree614e3022908afd7ca73f2b17f246400ba2e51208 /qstd/memory.c
parent98a8acd5bdb0bb62c836db987b243230fa0a0066 (diff)
Fix arena size check
Diffstat (limited to 'qstd/memory.c')
-rw-r--r--qstd/memory.c2
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;