diff options
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index e9ef6173f..c6ccbdbe8 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -222,7 +222,8 @@ void Logger::safeError(const std::string &error_text) // (ConstStr255Param) msg, nullptr, nullptr); #elif defined(__linux__) || defined(__linux) std::cerr << "Error: " << error_text << std::endl; - const std::string msg = "xmessage \"" + error_text + "\""; + const std::string msg = std::string("xmessage \"").append( + error_text).append("\""); if (system(msg.c_str()) == -1) std::cerr << "Error: " << error_text << std::endl; #else |