mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 20:13:07 +01:00
Unsure if this will fix the issue as not reproducable. It is possible that the pointer passed to this function is bad
This commit is contained in:
@@ -370,7 +370,7 @@ static void format_append_string(char** dest, size_t* size, const utf8* string)
|
||||
{
|
||||
if ((*size) == 0)
|
||||
return;
|
||||
size_t length = strlen(string);
|
||||
size_t length = strnlen(string, *size);
|
||||
if (length < (*size))
|
||||
{
|
||||
std::memcpy((*dest), string, length);
|
||||
|
||||
Reference in New Issue
Block a user