Module Name:    src
Committed By:   blymn
Date:           Mon Jan  9 21:17:29 UTC 2017

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

Log Message:
Checks for bottom right corner were reversed.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/lib/libcurses/border.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/border.c
diff -u src/lib/libcurses/border.c:1.17 src/lib/libcurses/border.c:1.18
--- src/lib/libcurses/border.c:1.17	Fri Jan  6 13:53:18 2017
+++ src/lib/libcurses/border.c	Mon Jan  9 21:17:29 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: border.c,v 1.17 2017/01/06 13:53:18 roy Exp $	*/
+/*	$NetBSD: border.c,v 1.18 2017/01/09 21:17:29 blymn Exp $	*/
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: border.c,v 1.17 2017/01/06 13:53:18 roy Exp $");
+__RCSID("$NetBSD: border.c,v 1.18 2017/01/09 21:17:29 blymn Exp $");
 #endif				/* not lint */
 
 #include <stdlib.h>
@@ -144,7 +144,7 @@ wborder(WINDOW *win, chtype left, chtype
 	}
 
 	/* Corners */
-	if (!(win->maxx == LINES && win->maxy == COLS &&
+	if (!(win->maxy == LINES && win->maxx == COLS &&
 	    (win->flags & __SCROLLOK) && (win->flags & __SCROLLWIN))) {
 		fp[0].ch = (wchar_t) topleft & __CHARTEXT;
 		fp[0].attr = (attr_t) topleft & __ATTRIBUTES;
@@ -492,7 +492,7 @@ int wborder_set(WINDOW *win, const cchar
 	}
 
 	/* Corners */
-	if (!(win->maxx == LINES && win->maxy == COLS &&
+	if (!(win->maxy == LINES && win->maxx == COLS &&
 		(win->flags & __SCROLLOK) && (win->flags & __SCROLLWIN))) {
 		for (i = 0; i < tlcw; i++) {
 			win->alines[0]->line[i].ch = topleft.vals[0];

Reply via email to