forked from rosebudai/OpenRCT2-Web
Use unsafe strlen for platforms without strlen_s
This commit is contained in:
1 parent
ee575d5b8c
commit
820668d0aa
1 file changed
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user