From 2f0bf2d0af5b9b749e6e195829fb7093fc8ab930 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 18 Dec 2009 08:45:12 +0000 Subject: Fix compiler warnings "format not a string literal and no format arguments". Actually exposed a bug in luaresume.cc --- server/src/macrotool_util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/macrotool_util.cc') diff --git a/server/src/macrotool_util.cc b/server/src/macrotool_util.cc index d6446f7..003e929 100644 --- a/server/src/macrotool_util.cc +++ b/server/src/macrotool_util.cc @@ -71,7 +71,7 @@ std::vector getTemplates() void printcolumn(std::string text, size_t width) { - printf(text.c_str()); + printf("%s", text.c_str()); for(size_t i = text.length(); i < width; i++) printf(" "); printf("\t"); } -- cgit v1.2.3