X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/6fb5be65b170939ca1cf3ad71104855070c6f230..cf404151f9635b861d4e92daa255ffc8db8d7be7:/usr/src/lib/libcurses/refresh.c diff --git a/usr/src/lib/libcurses/refresh.c b/usr/src/lib/libcurses/refresh.c index 8d812c1302..6de5bebffb 100644 --- a/usr/src/lib/libcurses/refresh.c +++ b/usr/src/lib/libcurses/refresh.c @@ -1,12 +1,12 @@ /* - * Copyright (c) 1981 Regents of the University of California. - * All rights reserved. + * Copyright (c) 1981, 1993 + * The Regents of the University of California. All rights reserved. * * %sccs.include.redist.c% */ #ifndef lint -static char sccsid[] = "@(#)refresh.c 5.46 (Berkeley) %G%"; +static char sccsid[] = "@(#)refresh.c 8.1 (Berkeley) %G%"; #endif /* not lint */ #include @@ -246,8 +246,8 @@ makech(win, wy) while (wx <= lch) { if (!force && memcmp(nsp, csp, sizeof(__LDATA)) == 0) { if (wx <= lch) { - while (memcmp(nsp, csp, sizeof(__LDATA)) == 0 && - wx <= lch) { + while (wx <= lch && + memcmp(nsp, csp, sizeof(__LDATA)) == 0) { nsp++; if (!curwin) csp++;