From: Christian Heller Date: Tue, 3 Sep 2013 14:29:19 +0000 (+0200) Subject: Corrected off-by-one error in windows.c:refit_pad() that lead to failure of subpad... X-Git-Tag: tce~981 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/te"st.html?a=commitdiff_plain;h=fd4745e5d345fcce8bd9f41c2f5a10482de448be;p=plomrogue Corrected off-by-one error in windows.c:refit_pad() that lead to failure of subpad memory allocation. --- diff --git a/src/windows.c b/src/windows.c index bd3ec41..080880c 100644 --- a/src/windows.c +++ b/src/windows.c @@ -79,7 +79,7 @@ static uint8_t refit_pad(struct WinMeta * wmeta) } /* Only resize the pad if the rightmost window column has changed. */ - if (getmaxx(wmeta->padframe.curses_win) != lastwincol) + if (getmaxx(wmeta->padframe.curses_win) + 1 != lastwincol) { if (lastwincol + 2 > UINT16_MAX) {