mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 04:54:35 +00:00
Cleanup
This commit is contained in:
parent
95e282d5a0
commit
6d463d36fa
@ -152,15 +152,13 @@ void _glfwInputError(int code, const char* format, ...)
|
||||
|
||||
if (format)
|
||||
{
|
||||
int count;
|
||||
va_list vl;
|
||||
|
||||
va_start(vl, format);
|
||||
count = vsnprintf(description, sizeof(description), format, vl);
|
||||
vsnprintf(description, sizeof(description), format, vl);
|
||||
va_end(vl);
|
||||
|
||||
if (count < 0)
|
||||
description[sizeof(description) - 1] = '\0';
|
||||
description[sizeof(description) - 1] = '\0';
|
||||
}
|
||||
else
|
||||
strcpy(description, getErrorString(code));
|
||||
|
Loading…
Reference in New Issue
Block a user