1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Use unsafe strlen for platforms without strlen_s

This commit is contained in:
duncanspumpkin
2021-03-20 07:27:23 +00:00
parent ee575d5b8c
commit 820668d0aa

View File

@@ -250,7 +250,7 @@ public:
cursorY = screenCoords.y;
int32_t textWidth = 6;
if (gTextInput->SelectionStart < strnlen_s(_buffer.data(), _buffer.size()))
if (gTextInput->SelectionStart < strlen(_buffer.data()))
{
// Make a 1 utf8-character wide string for measuring the width
// of the currently selected character.