Merge branch 'dev' into dev-0.11

This commit is contained in:
David Reid
2021-07-05 17:27:11 +10:00
+1 -1
View File
@@ -8543,7 +8543,7 @@ MA_API ma_result ma_log_postv(ma_log* pLog, ma_uint32 level, const char* pFormat
return MA_OUT_OF_MEMORY; return MA_OUT_OF_MEMORY;
} }
length = vsnprintf(pFormattedMessageHeap, sizeof(pFormattedMessageHeap), pFormat, args); length = vsnprintf(pFormattedMessageHeap, length + 1, pFormat, args);
if (length < 0) { if (length < 0) {
ma_free(pFormattedMessageHeap, &pLog->allocationCallbacks); ma_free(pFormattedMessageHeap, &pLog->allocationCallbacks);
return MA_INVALID_OPERATION; return MA_INVALID_OPERATION;