X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/4b0cf9034e4e73a42d48326ec6f6fca3023a0661..48a10826fef7777bb8b061f4a121f481ced98bc0:/fifteen.c diff --git a/fifteen.c b/fifteen.c index c29e9fe..0ed5067 100644 --- a/fifteen.c +++ b/fifteen.c @@ -421,7 +421,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++) {