aboutsummaryrefslogtreecommitdiff
path: root/singles.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2010-01-13 19:25:57 +0000
committerSimon Tatham <anakin@pobox.com>2010-01-13 19:25:57 +0000
commit854f4b238612b814be162933f2ea21f1e43abbf3 (patch)
tree9d560b4fe57aec655d7474f5e4a92bd6785e988e /singles.c
parent65b37d5dd5f863065cce72665dd8303fe1a08794 (diff)
downloadpuzzles-854f4b238612b814be162933f2ea21f1e43abbf3.zip
puzzles-854f4b238612b814be162933f2ea21f1e43abbf3.tar.gz
puzzles-854f4b238612b814be162933f2ea21f1e43abbf3.tar.bz2
puzzles-854f4b238612b814be162933f2ea21f1e43abbf3.tar.xz
Don't use payload strings directly as the format for printf.
[originally from svn r8839]
Diffstat (limited to 'singles.c')
-rw-r--r--singles.c4
1 files 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");