mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Fix potential bug with missing 0 terminator
This commit is contained in:
@@ -960,7 +960,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
|
||||
case WIDX_FILENAME_TEXTBOX:
|
||||
{
|
||||
std::string tempText = text.data();
|
||||
std::string tempText{ text };
|
||||
const char* cStr = tempText.c_str();
|
||||
if (strcmp(_currentFilename, cStr) == 0)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user