diff options
Diffstat (limited to 'twiddle.c')
| -rw-r--r-- | twiddle.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -521,7 +521,7 @@ static char *game_text_format(game_state *state) */ maxlen = state->h * state->w * (col+o+1); - ret = snewn(maxlen, char); + ret = snewn(maxlen+1, char); p = ret; for (y = 0; y < state->h; y++) { |