From 1c9752f6da0391ae6e1ac2f954323aa550b2e777 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 13 Jan 2010 19:25:57 +0000 Subject: [PATCH] Don't use payload strings directly as the format for printf. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8839 cda61777-01e9-0310-a592-d414129be87e --- singles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/singles.c b/singles.c index ef7730d..31c7214 100644 --- a/singles.c +++ b/singles.c @@ -1941,13 +1941,13 @@ int main(int argc, char **argv) if (verbose) { tgame = game_text_format(s); - printf(tgame); + fputs(tgame, stdout); sfree(tgame); } soln = solve_specific(s, DIFF_ANY, 0); tgame = game_text_format(s); - printf(tgame); + fputs(tgame, stdout); sfree(tgame); printf("Game was %s.\n\n", soln < 0 ? "impossible" : soln > 0 ? "solved" : "not solved"); -- 2.11.0