mirror of
https://github.com/ZDoom/ZMusic.git
synced 2024-12-04 01:22:32 +00:00
- fixed print function with va_list argument
This commit is contained in:
parent
edd802e655
commit
79effe2353
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ namespace MusicIO {
|
||||||
void ZMusic_Print(int type, const char* msg, va_list args)
|
void ZMusic_Print(int type, const char* msg, va_list args)
|
||||||
{
|
{
|
||||||
static char printbuf[4096];
|
static char printbuf[4096];
|
||||||
snprintf(printbuf, 4096, msg, args);
|
vsnprintf(printbuf, 4096, msg, args);
|
||||||
if (musicCallbacks.MessageFunc)
|
if (musicCallbacks.MessageFunc)
|
||||||
{
|
{
|
||||||
musicCallbacks.MessageFunc(type, printbuf);
|
musicCallbacks.MessageFunc(type, printbuf);
|
||||||
|
|
Loading…
Reference in a new issue