Fix Coverity Scan false positive

This commit is contained in:
Camilla Löwy
2019-03-04 18:52:56 +01:00
parent 621ece63c8
commit c20754c4a6
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -436,7 +436,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;