fix(heap): Fix HeapAllocator class

This commit is contained in:
Daniel Hammer
2025-04-15 20:45:34 +02:00
parent 2e45efe855
commit 35cf3f7c80
5 changed files with 20 additions and 17 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ namespace kcp {
do {
if (*str == delimiter || *str == '\0') {
auto cstr = current_stream.cstr();
auto cstr = current_stream.c_str();
auto cstr_len = Lib::strlen(cstr);
result.push_back((const char*)Memory::g_heap->Request(sizeof(char) * (cstr_len + 1)));