Log: Fix warnings and attempt to fix the segmentation fault again.

This commit is contained in:
OBattler
2025-08-09 17:31:10 +02:00
parent 37d535dec6
commit 7b3b92e3b3

View File

@@ -288,10 +288,10 @@ log_fatal(void *priv, const char *fmt, ...)
}
log_copy(log, fmt2, fmt, LOG_SIZE_BUFFER);
va_start(ap, fmt2);
va_start(ap, fmt);
vsprintf(temp, fmt2, ap);
fatal_ex(fmt2, ap);
va_end(ap);
fatal(temp);
exit(-1);
}
@@ -314,10 +314,10 @@ log_warning(void *priv, const char *fmt, ...)
}
log_copy(log, fmt2, fmt, LOG_SIZE_BUFFER);
va_start(ap, fmt2);
va_start(ap, fmt);
vsprintf(temp, fmt2, ap);
warning_ex(fmt2, ap);
va_end(ap);
warning(temp, ap);
}
static void *