diff options
author | Chris Robinson <[email protected]> | 2018-11-25 09:27:50 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-25 09:27:50 -0800 |
commit | adcdb8ce64e76a7e772b05fe3be8ce633d29aa90 (patch) | |
tree | 777fd0b6bcd390f72c82513ae4cad81cd147c18f /OpenAL32/alError.cpp | |
parent | ec9736035226539d267659d2e6eba2e06c2507ca (diff) |
Fix an incorrect function call
Diffstat (limited to 'OpenAL32/alError.cpp')
-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)) |