~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]
/
rect.c
diff --git
a/rect.c
b/rect.c
index
abfd332
..
ffb3725
100644
(file)
--- a/
rect.c
+++ b/
rect.c
@@
-1081,7
+1081,7
@@
static char *game_text_format(game_state *state)
*/
maxlen = (2*state->h+1) * (state->w * (col+1) + 2);
- ret = snewn(maxlen, char);
+ ret = snewn(maxlen
+1
, char);
p = ret;
for (y = 0; y <= 2*state->h; y++) {