Update pad.c

This commit is contained in:
GiorgosXou
2021-10-17 09:31:17 +03:00
committed by GitHub
parent af431757dc
commit b5b0a0d596

View File

@@ -193,9 +193,9 @@ int pnoutrefresh(WINDOW *w, int py, int px, int sy1, int sx1, int sy2, int sx2)
if (sx1 < 0)
sx1 = 0;
if (!w || !(w->_flags & (_PAD|_SUBPAD)) ||
if ((!w || !(w->_flags & (_PAD|_SUBPAD)) ||
(sy2 >= LINES) || (sx2 >= COLS)) ||
(sy2 < sy1) || (sx2 < sx1)
(sy2 < sy1) || (sx2 < sx1))
return ERR;
sline = sy1;