ref: 854f4b238612b814be162933f2ea21f1e43abbf3
parent: 65b37d5dd5f863065cce72665dd8303fe1a08794
author: Simon Tatham <anakin@pobox.com>
date: Wed Jan 13 14:25:57 EST 2010
Don't use payload strings directly as the format for printf. [originally from svn r8839]
--- a/singles.c
+++ b/singles.c
@@ -1941,13 +1941,13 @@
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");