Unify error message buffer lengths

This commit is contained in:
Camilla Löwy
2017-08-17 14:25:10 +02:00
parent 08737bdc02
commit 0c70eb8d5c
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -779,7 +779,7 @@ void _glfwReleaseErrorHandlerX11(void)
//
void _glfwInputErrorX11(int error, const char* message)
{
char buffer[8192];
char buffer[_GLFW_MESSAGE_SIZE];
XGetErrorText(_glfw.x11.display, _glfw.x11.errorCode,
buffer, sizeof(buffer));