diff options
author | Matthias (think) <matthias@mpb.li> | 2012-07-11 11:53:28 +0200 |
---|---|---|
committer | Matthias (think) <matthias@mpb.li> | 2012-07-11 11:53:28 +0200 |
commit | 37f3f44cc1c0f5cf3a9b3f0ffc32f638b281994e (patch) | |
tree | 5b1addcce04025582f14106938b0f46ac9a5af47 /src/TcpLog.cpp | |
parent | bbab73a63b8c7b50e8a8cb228999d45024fad984 (diff) | |
download | dabmux-37f3f44cc1c0f5cf3a9b3f0ffc32f638b281994e.tar.gz dabmux-37f3f44cc1c0f5cf3a9b3f0ffc32f638b281994e.tar.bz2 dabmux-37f3f44cc1c0f5cf3a9b3f0ffc32f638b281994e.zip |
Diffstat (limited to 'src/TcpLog.cpp')
-rw-r--r-- | src/TcpLog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/TcpLog.cpp b/src/TcpLog.cpp index 7161c92..9fc73b7 100644 --- a/src/TcpLog.cpp +++ b/src/TcpLog.cpp @@ -157,7 +157,7 @@ void TcpLog::printHeader(const int priority, const char *format, ...) message.insert(pos, beginning); } - fprintf(stderr, message.c_str()); + fprintf(stderr, "%s", message.c_str()); if (client != -1) { if (write(client, message.c_str(), message.size()) != (int)message.size()) { @@ -216,7 +216,7 @@ void TcpLog::print(const int priority, const char *format, ...) message.insert(pos, beginning); } - fprintf(stderr, message.c_str()); + fprintf(stderr, "%s", message.c_str()); if (client != -1) { if (send(client, message.c_str(), message.size(), MSG_NOSIGNAL) != (int)message.size()) { |