From 8c04528fa05ffad4c6072dae9a439c11cdd86393 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 4 Jun 2019 10:24:02 +0200 Subject: [PATCH] GL: fixed printing error --- src/video_display/gl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_display/gl.cpp b/src/video_display/gl.cpp index e3c0649ce..e368a9101 100644 --- a/src/video_display/gl.cpp +++ b/src/video_display/gl.cpp @@ -1023,7 +1023,7 @@ static void glut_init_error_callback(const char *fmt, va_list ap) // format the string auto buffer = (char *) alloca(size + 1); va_copy(aq, ap); - if (vsprintf(buffer, fmt, ap) == size) { + if (vsprintf(buffer, fmt, ap) >= 0) { LOG(LOG_LEVEL_ERROR) << "[GL] " << buffer << "\n"; } va_end(aq);