summaryrefslogtreecommitdiff
path: root/library/Console-linux.cpp
diff options
context:
space:
mode:
authorjj2012-06-13 00:21:23 +0200
committerjj2012-06-13 00:21:23 +0200
commitc364b4204997af81b6b419fa245ed22c1c56f389 (patch)
tree7cd4f0a9c3dbde329b52e07b4eaf6dc660ac7c2b /library/Console-linux.cpp
parent02854483672142df8879801932dd00b436289356 (diff)
downloaddfhack-c364b4204997af81b6b419fa245ed22c1c56f389.tar.gz
dfhack-c364b4204997af81b6b419fa245ed22c1c56f389.tar.bz2
dfhack-c364b4204997af81b6b419fa245ed22c1c56f389.tar.xz
fix minor gcc warning
Diffstat (limited to 'library/Console-linux.cpp')
-rw-r--r--library/Console-linux.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/Console-linux.cpp b/library/Console-linux.cpp
index 3c0ad893..24d13f42 100644
--- a/library/Console-linux.cpp
+++ b/library/Console-linux.cpp
@@ -255,7 +255,7 @@ namespace DFHack
void color(Console::color_value index)
{
if(!rawmode)
- fprintf(dfout_C,getANSIColor(index));
+ fprintf(dfout_C, "%s", getANSIColor(index));
else
{
const char * colstr = getANSIColor(index);
@@ -761,4 +761,4 @@ void Console::msleep (unsigned int msec)
{
if (msec > 1000) sleep(msec/1000000);
usleep((msec % 1000000) * 1000);
-} \ No newline at end of file
+}