Log: Use fmt2 to initialize format, not fmt.

This commit is contained in:
OBattler
2025-08-09 16:13:13 +02:00
parent a541923cba
commit 880163c048

View File

@@ -287,8 +287,8 @@ log_fatal(void *priv, const char *fmt, ...)
free(log->cyclic_buff);
}
va_start(ap, fmt);
log_copy(log, fmt2, fmt, LOG_SIZE_BUFFER);
va_start(ap, fmt2);
vsprintf(temp, fmt2, ap);
fatal_ex(fmt2, ap);
va_end(ap);
@@ -313,8 +313,8 @@ log_warning(void *priv, const char *fmt, ...)
free(log->cyclic_buff);
}
va_start(ap, fmt);
log_copy(log, fmt2, fmt, LOG_SIZE_BUFFER);
va_start(ap, fmt2);
vsprintf(temp, fmt2, ap);
warning_ex(fmt2, ap);
va_end(ap);