chiark / gitweb /
Don't use payload strings directly as the format for printf.
authorSimon Tatham <anakin@pobox.com>
Wed, 13 Jan 2010 19:25:57 +0000 (19:25 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 13 Jan 2010 19:25:57 +0000 (19:25 +0000)
[originally from svn r8839]

singles.c

index ef7730dbe539f712d337c7ca942310d89f5dc3b6..31c7214fb3db3c8602edf7fb3e89e39235e58edb 100644 (file)
--- 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");