mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 20:40:27 +00:00
GL: fixed printing error
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user