diff options
author | Warpten <vertozor@gmail.com> | 2018-10-27 22:14:37 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-11-15 21:34:44 +0100 |
commit | 1d4efe298691a42cba3b6084805feb977075f898 (patch) | |
tree | 6dd2660d53200c5ea2629874805946d99b8e1483 | |
parent | c977087d589e8b1696eccb0730284f056c731b04 (diff) |
Fix invalid arguments to string format in Trinity::Fatal
Isn't whatever is used nowadays to make this stuff safe supposed to prevent this sort of stuff?
(cherry picked from commit 9bf69b3849a9d78f3e8d174ed6367a259aaf876f)
-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 0ee53611874..9f832caff4d 100644 --- a/src/common/Debugging/Errors.cpp +++ b/src/common/Debugging/Errors.cpp @@ -95,7 +95,7 @@ void Fatal(char const* file, int line, char const* function, char const* message va_list args; va_start(args, message); - std::string formattedMessage = StringFormat("\n%s:%i in %s FATAL ERROR:\n %s\n", file, line, function) + FormatAssertionMessage(message, args) + '\n'; + std::string formattedMessage = StringFormat("\n%s:%i in %s FATAL ERROR:\n", file, line, function) + FormatAssertionMessage(message, args) + '\n'; va_end(args); fprintf(stderr, "%s", formattedMessage.c_str()); |