chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65b37d5
)
Don't use payload strings directly as the format for printf.
author
Simon Tatham
<anakin@pobox.com>
Wed, 13 Jan 2010 19:25:57 +0000
(19:25 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Wed, 13 Jan 2010 19:25:57 +0000
(19:25 +0000)
[originally from svn r8839]
singles.c
patch
|
blob
|
history
diff --git
a/singles.c
b/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");