aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarpten <vertozor@gmail.com>2018-10-27 22:14:37 +0200
committerGitHub <noreply@github.com>2018-10-27 22:14:37 +0200
commit9bf69b3849a9d78f3e8d174ed6367a259aaf876f (patch)
tree9950cad0e04d097ea8b4569ae6f806d6b35026e2
parentbbdf62d6e84a47036e39a59a1349c073711ec2ca (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?
-rw-r--r--src/common/Debugging/Errors.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Debugging/Errors.cpp b/src/common/Debugging/Errors.cpp
index 00fd41e192c..fd46575c237 100644
--- a/src/common/Debugging/Errors.cpp
+++ b/src/common/Debugging/Errors.cpp
@@ -96,7 +96,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());