Subject: Re: libcurses border() leads to segfault
To: Neil Ludban <nludban@columbus.rr.com>
From: David Laight <david@l8s.co.uk>
List: current-users
Date: 10/23/2005 17:28:21
On Sun, Oct 23, 2005 at 11:37:44AM -0400, Neil Ludban wrote:
> 
> if (!(win->maxx == LINES && win->maxy == COLS &&
>       (win->flags & __SCROLLOK) && (win->flags & __SCROLLWIN))) {

Interestingly, this started out as:
  if (!(win->flags & __SCROLLOK) && (win->flags & __SCROLLWIN)) {

Which has a different sense on the __SCROLLWIN flag...
I'm not actually sure what this entire test is for either.
Fortunately it is unlikely to be false, so corners usually get drawn.

This doesn't help undertand why drawing the bottom-right corner kills things.

	David

-- 
David Laight: david@l8s.co.uk