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
1 changed files with 1 additions and 1 deletions

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.