~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow for trailing '\0' in game_text_format() in various games.
[sgt/puzzles]
/
sixteen.c
diff --git
a/sixteen.c
b/sixteen.c
index
cd6ae3b
..
950f724
100644
(file)
--- a/
sixteen.c
+++ b/
sixteen.c
@@
-429,7
+429,7
@@
static char *game_text_format(game_state *state)
*/
maxlen = state->h * state->w * (col+1);
- ret = snewn(maxlen, char);
+ ret = snewn(maxlen
+1
, char);
p = ret;
for (y = 0; y < state->h; y++) {