summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Log.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Log.cpp b/src/Log.cpp
index 6f8fe841..6b169ec9 100644
--- a/src/Log.cpp
+++ b/src/Log.cpp
@@ -39,7 +39,7 @@ void
Log::error(const std::string& msg)
{
if (_log) {
- _log->printf(_log->handle, _uris.log_Error, msg.c_str());
+ _log->printf(_log->handle, _uris.log_Error, "%s", msg.c_str());
} else {
std::cerr << ANSI_RED << msg << ANSI_RESET;
}
@@ -49,7 +49,7 @@ void
Log::warn(const std::string& msg)
{
if (_log) {
- _log->printf(_log->handle, _uris.log_Warning, msg.c_str());
+ _log->printf(_log->handle, _uris.log_Warning, "%s", msg.c_str());
} else {
std::cerr << ANSI_YELLOW << msg << ANSI_RESET;
}
@@ -59,7 +59,7 @@ void
Log::info(const std::string& msg)
{
if (_log) {
- _log->printf(_log->handle, _uris.log_Note, msg.c_str());
+ _log->printf(_log->handle, _uris.log_Note, "%s", msg.c_str());
} else {
std::cout << msg;
}