summaryrefslogtreecommitdiffstats
path: root/src/CommandOutput.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-11 22:16:08 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-11 22:16:08 +0100
commit16b27c4b7ae2ccb03355148fa7fc7116190cc5fb (patch)
treec5eb676f548fbfa770e11779bcc1380d7f16f06c /src/CommandOutput.cpp
parentMove Format issues (diff)
downloadcuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar.gz
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar.bz2
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar.lz
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar.xz
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar.zst
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.zip
Diffstat (limited to 'src/CommandOutput.cpp')
-rw-r--r--src/CommandOutput.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CommandOutput.cpp b/src/CommandOutput.cpp
index c221682a1..74f857284 100644
--- a/src/CommandOutput.cpp
+++ b/src/CommandOutput.cpp
@@ -51,7 +51,7 @@ void cLogCommandOutputCallback::Finished(void)
{
case '\n':
{
- LOG(m_Buffer.substr(last, i - last).c_str());
+ LOG("%s",m_Buffer.substr(last, i - last).c_str());
last = i + 1;
break;
}
@@ -59,7 +59,7 @@ void cLogCommandOutputCallback::Finished(void)
} // for i - m_Buffer[]
if (last < len)
{
- LOG(m_Buffer.substr(last).c_str());
+ LOG("%s",m_Buffer.substr(last).c_str());
}
// Clear the buffer for the next command output: