X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/4b0cf9034e4e73a42d48326ec6f6fca3023a0661..48a10826fef7777bb8b061f4a121f481ced98bc0:/rect.c diff --git a/rect.c b/rect.c index abfd332..ffb3725 100644 --- 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++) {