diff options
author | deva <deva> | 2009-12-18 08:45:12 +0000 |
---|---|---|
committer | deva <deva> | 2009-12-18 08:45:12 +0000 |
commit | 2f0bf2d0af5b9b749e6e195829fb7093fc8ab930 (patch) | |
tree | 37374c59ad77b30477929bf89689ac3c1645f792 /server/src/macrotool_filehandler.cc | |
parent | 817072bf0ae27484394a77a016cfe07b35885b8a (diff) |
Fix compiler warnings "format not a string literal and no format arguments". Actually exposed a bug in luaresume.cc
Diffstat (limited to 'server/src/macrotool_filehandler.cc')
-rw-r--r-- | server/src/macrotool_filehandler.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/src/macrotool_filehandler.cc b/server/src/macrotool_filehandler.cc index d0245ba..c52921a 100644 --- a/server/src/macrotool_filehandler.cc +++ b/server/src/macrotool_filehandler.cc @@ -190,7 +190,7 @@ static void add(std::string file) void macrotool_filehandler(std::vector<std::string> params) { if(params.size() < 1) { - printf(usage_str); + printf("%s", usage_str); return; } @@ -199,7 +199,7 @@ void macrotool_filehandler(std::vector<std::string> params) if(params[0] == "add") { if(params.size() != 2) { printf("The command 'add' needs 1 parameter.\n"); - printf(usage_str); + printf("%s", usage_str); return; } add(params[1]); @@ -209,7 +209,7 @@ void macrotool_filehandler(std::vector<std::string> params) if(params[0] == "check") { if(params.size() != 2) { printf("The command 'check' needs 1 parameter.\n"); - printf(usage_str); + printf("%s", usage_str); return; } check(params[1]); @@ -217,11 +217,11 @@ void macrotool_filehandler(std::vector<std::string> params) } if(params[0] == "help") { - printf(usage_str); + printf("%s", usage_str); return; } printf("Unknown command '%s'\n", params[0].c_str()); - printf(usage_str); + printf("%s", usage_str); return; } |