fix off-by-one size restriction in string chunk allocation; apply same fixes to ctrl entity string allocator

This commit is contained in:
Ryan Fleury
2025-01-05 22:39:10 -08:00
parent d70ce6465a
commit bc44f58a80
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1126,7 +1126,7 @@ rd_name_alloc(String8 string)
n != 0;
prev = n, n = n->next)
{
if(n->size >= string.size+1)
if(n->size >= string.size)
{
if(prev == 0)
{