Properly clean allocated space before using it

This commit is contained in:
AeonLucid
2021-10-31 00:01:44 +02:00
parent afb082ee88
commit 7fbf7f225e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -62,6 +62,7 @@ namespace SDK
Max = Count;
Data = static_cast<wchar_t*>((*GMalloc)->Malloc(Count * 2));
memset(Data, 0, Count * 2);
memcpy(Data, other, charLen * 2);
}
}