input: Use strncmp instead of strcmp

This commit is contained in:
Emmanuel Gil Peyrot 2021-03-21 15:29:30 +01:00
parent 04922c63de
commit 1bb2388ec5

View File

@ -71,7 +71,7 @@ static _GLFWmapping* findMapping(const char* guid)
for (i = 0; i < _glfw.mappingCount; i++)
{
if (strcmp(_glfw.mappings[i].guid, guid) == 0)
if (strncmp(_glfw.mappings[i].guid, guid, 32) == 0)
return _glfw.mappings + i;
}