mirror of
https://github.com/glfw/glfw.git
synced 2025-06-15 20:22:15 +00:00
input: Use strncmp instead of strcmp
This commit is contained in:
parent
04922c63de
commit
1bb2388ec5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user