From 820668d0aa123341f02543357586298929aff545 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Sat, 20 Mar 2021 07:27:23 +0000 Subject: [PATCH] Use unsafe strlen for platforms without strlen_s --- src/openrct2-ui/windows/TextInput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/TextInput.cpp b/src/openrct2-ui/windows/TextInput.cpp index 8d278b99f3..956252064c 100644 --- a/src/openrct2-ui/windows/TextInput.cpp +++ b/src/openrct2-ui/windows/TextInput.cpp @@ -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.