Fix string literal exceeding max length

Fixes #1145.
This commit is contained in:
Camilla Löwy
2017-11-23 20:54:44 +01:00
parent fe9c7a01c5
commit 3169179de1
4 changed files with 270 additions and 257 deletions
+10 -3
View File
@@ -220,10 +220,17 @@ GLFWAPI int glfwInit(void)
glfwDefaultWindowHints();
if (!glfwUpdateGamepadMappings(_glfwDefaultMappings))
{
terminate();
return GLFW_FALSE;
int i;
for (i = 0; _glfwDefaultMappings[i]; i++)
{
if (!glfwUpdateGamepadMappings(_glfwDefaultMappings[i]))
{
terminate();
return GLFW_FALSE;
}
}
}
return GLFW_TRUE;