Fix an incorrect function call

This commit is contained in:
Chris Robinson 2018-11-25 09:27:50 -08:00
parent ec97360352
commit adcdb8ce64

View File

@ -40,7 +40,7 @@ void alSetError(ALCcontext *context, ALenum errorCode, const char *msg, ...)
va_list args;
va_start(args, msg);
int msglen{snprintf(message, sizeof(message), msg, args)};
int msglen{vsnprintf(message, sizeof(message), msg, args)};
va_end(args);
if(msglen < 0 || (size_t)msglen >= sizeof(message))