1
0
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:
ζeh Matt
2025-05-23 18:48:57 +03:00
parent 3bfecb236f
commit d7b65d48ac

View File

@@ -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;