diff options
-rw-r--r-- | OpenAL32/alError.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alError.cpp b/OpenAL32/alError.cpp index 39c666d2..303fbeac 100644 --- a/OpenAL32/alError.cpp +++ b/OpenAL32/alError.cpp @@ -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)) |