diff options
| author | jj | 2012-06-13 00:21:23 +0200 |
|---|---|---|
| committer | jj | 2012-06-13 00:21:23 +0200 |
| commit | c364b4204997af81b6b419fa245ed22c1c56f389 (patch) | |
| tree | 7cd4f0a9c3dbde329b52e07b4eaf6dc660ac7c2b /library/Console-linux.cpp | |
| parent | 02854483672142df8879801932dd00b436289356 (diff) | |
| download | dfhack-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.cpp | 4 |
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 +} |
