diff options
-rw-r--r-- | src/common/Debugging/Errors.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Debugging/Errors.cpp b/src/common/Debugging/Errors.cpp index fc4ecb5f2c8..9ffd4c378ca 100644 --- a/src/common/Debugging/Errors.cpp +++ b/src/common/Debugging/Errors.cpp @@ -60,7 +60,7 @@ namespace va_end(len); formatted.resize(length); - vsnprintf(&formatted[0], length, format, args); + vsnprintf(&formatted[0], length + 1, format, args); return formatted; } |