Fixed a bug where minMemorySize could cause a memory overwrite

This commit is contained in:
Nic Barker 2025-01-11 21:37:21 +13:00
parent 32d1a31dfe
commit 9e7595b873
2 changed files with 1 additions and 1 deletions

2
clay.h
View file

@ -3615,7 +3615,7 @@ uint32_t Clay_MinMemorySize(void) {
.maxMeasureTextCacheWordCount = Clay__defaultMaxMeasureTextWordCacheCount, .maxMeasureTextCacheWordCount = Clay__defaultMaxMeasureTextWordCacheCount,
.internalArena = { .internalArena = {
.capacity = SIZE_MAX, .capacity = SIZE_MAX,
.memory = (char*)&fakeContext, .memory = NULL,
} }
}; };
Clay_Context* currentContext = Clay_GetCurrentContext(); Clay_Context* currentContext = Clay_GetCurrentContext();