aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alError.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-25 09:27:50 -0800
committerChris Robinson <[email protected]>2018-11-25 09:27:50 -0800
commitadcdb8ce64e76a7e772b05fe3be8ce633d29aa90 (patch)
tree777fd0b6bcd390f72c82513ae4cad81cd147c18f /OpenAL32/alError.cpp
parentec9736035226539d267659d2e6eba2e06c2507ca (diff)
Fix an incorrect function call
Diffstat (limited to 'OpenAL32/alError.cpp')
-rw-r--r--OpenAL32/alError.cpp2
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))