Fix Coverity Scan false positive

From upstream: c20754c4a6
This commit is contained in:
Kovid Goyal
2019-03-06 08:40:02 +05:30
parent aa2b21456f
commit db16996181
3 changed files with 3 additions and 4 deletions

2
glfw/input.c vendored
View File

@@ -415,7 +415,7 @@ _GLFWjoystick* _glfwAllocJoystick(const char* name,
js->buttonCount = buttonCount;
js->hatCount = hatCount;
strcpy(js->guid, guid);
strncpy(js->guid, guid, sizeof(js->guid) - 1);
js->mapping = findValidMapping(js);
return js;