Module Name:    src
Committed By:   uwe
Date:           Sun Nov 18 01:05:30 UTC 2018

Modified Files:
        src/lib/libcurses: refresh.c

Log Message:
quickch - fix inverted checks.

I have to admit I have no idea what's going on here, but HAVE_WCHAR
code here inverted the sense of linecmp and cellcmp checks w.r.t the
!HAVE_WCHAR variant just above it.  Cf. also all other similar #ifdefs
in this file.

Found through source code inspection, not really tested.


To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libcurses/refresh.c
diff -u src/lib/libcurses/refresh.c:1.93 src/lib/libcurses/refresh.c:1.94
--- src/lib/libcurses/refresh.c:1.93	Sun Nov 18 00:45:44 2018
+++ src/lib/libcurses/refresh.c	Sun Nov 18 01:05:30 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: refresh.c,v 1.93 2018/11/18 00:45:44 uwe Exp $	*/
+/*	$NetBSD: refresh.c,v 1.94 2018/11/18 01:05:30 uwe Exp $	*/
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)refresh.c	8.7 (Berkeley) 8/13/94";
 #else
-__RCSID("$NetBSD: refresh.c,v 1.93 2018/11/18 00:45:44 uwe Exp $");
+__RCSID("$NetBSD: refresh.c,v 1.94 2018/11/18 01:05:30 uwe Exp $");
 #endif
 #endif				/* not lint */
 
@@ -1743,9 +1743,9 @@ done:
 				{
 #else
 				if (clp->hash != blank_hash
-				    || linecmp(clp->line, clp->line + 1,
+				    || !linecmp(clp->line, clp->line + 1,
 				    (unsigned int) (__virtscr->maxx - 1))
-				    || cellcmp(clp->line, buf))
+				    || !cellcmp(clp->line, buf))
 				{
 #endif /* HAVE_WCHAR */
 					for (i = __virtscr->maxx;

Reply via email to