mirror of
https://github.com/ZDoom/ZMusic.git
synced 2024-12-03 17:12:08 +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)
|
||||
{
|
||||
static char printbuf[4096];
|
||||
snprintf(printbuf, 4096, msg, args);
|
||||
vsnprintf(printbuf, 4096, msg, args);
|
||||
if (musicCallbacks.MessageFunc)
|
||||
{
|
||||
musicCallbacks.MessageFunc(type, printbuf);
|
||||
|
|
Loading…
Reference in a new issue