mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use unsafe strlen for platforms without strlen_s
This commit is contained in:
parent
ee575d5b8c
commit
820668d0aa
|
@ -250,7 +250,7 @@ public:
|
||||||
cursorY = screenCoords.y;
|
cursorY = screenCoords.y;
|
||||||
|
|
||||||
int32_t textWidth = 6;
|
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
|
// Make a 1 utf8-character wide string for measuring the width
|
||||||
// of the currently selected character.
|
// of the currently selected character.
|
||||||
|
|
Loading…
Reference in New Issue