From c364b4204997af81b6b419fa245ed22c1c56f389 Mon Sep 17 00:00:00 2001 From: jj Date: Wed, 13 Jun 2012 00:21:23 +0200 Subject: [PATCH] fix minor gcc warning --- library/Console-linux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Console-linux.cpp b/library/Console-linux.cpp index 3c0ad8938..24d13f42b 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 +}