This commit is contained in:
Tenari
2026-06-16 07:23:44 -05:00
parent d64bca26ef
commit 6e0ef08f1f
+1 -2
View File
@@ -48,9 +48,8 @@ fn String stringChunkToStringWithPadding(Arena* a, StringChunkList list, u32 ext
String result = {
.length = list.total_size,
.capacity = cap,
.bytes = arenaAllocArray(a, u8, cap),
.bytes = arenaAllocZero(a, cap),
};
MemoryZero(result.bytes, result.capacity);
// copy the string bytes out of the StringChunkList into the correctly-sized String
StringChunk* chunk = list.first;
for (u32 i = 0; i < list.total_size; i++) {