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/queryhandlerpentominos.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/src/queryhandlerpentominos.cc') diff --git a/server/src/queryhandlerpentominos.cc b/server/src/queryhandlerpentominos.cc index c52b36c..62a742f 100644 --- a/server/src/queryhandlerpentominos.cc +++ b/server/src/queryhandlerpentominos.cc @@ -157,7 +157,7 @@ QueryResult QueryHandlerPentominos::exec(Query &query) socket.write(header, strlen(header)); #endif/*WITHOUT_PENTOMINOS*/ - PRACRO_DEBUG(queryhandler, header); + PRACRO_DEBUG(queryhandler, "%s", header); sprintf(buf, " "); @@ -202,7 +202,7 @@ QueryResult QueryHandlerPentominos::exec(Query &query) socket.write(buf, strlen(buf)); #endif/*WITHOUT_PENTOMINOS*/ - PRACRO_DEBUG(queryhandler, buf); + PRACRO_DEBUG(queryhandler, "%s", buf); QueryResult result; -- cgit v1.2.3