Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Jul 1997 08:35:03 +0100
From:      Brian Somers <brian@awfulhak.org>
To:        Minsung Kim <stair@mci2000.com>
Cc:        Brian Somers <brian@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/i386/isa syscons.c 
Message-ID:  <199707080735.IAA04146@awfulhak.demon.co.uk>
In-Reply-To: Your message of "Mon, 07 Jul 1997 15:56:09 PDT." <33C17409.65C6BD37@mci2000.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Brian Somers wrote:
> > 
> > brian       1997/07/07 06:40:25 PDT
> > 
> >   Modified files:        (Branch: RELENG_2_2)
> >     sys/i386/isa         syscons.c
> >   Log:
> >   Handle indirect results of "kbdcontrol -h X"
> >   where X < 25.
> > 
> >   Revision  Changes    Path
> >   1.182.2.21 +7 -4      src/sys/i386/isa/syscons.c
> 
> What would happen if the current size of screen is 43, 50, or 60?  I remember
> having my computer panicked by accidentally setting the history size to 25 when
> the screen had 60 lines.

This'll fix that too.  The problem is when you choose X < "lines on screen", 
the history buffer gets freed and left at NULL.   The next time in, it also 
gets freed.... panic.

Now it just checks for NULL and doesn't free.

> Regards,
> -- 
> Stair
> 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Kim, Minsung (Stair in Cyberland)                    <mailto:stair@mci2000.com>
> 

-- 
Brian <brian@awfulhak.org>, <brian@freebsd.org>
      <http://www.awfulhak.org>;
Don't _EVER_ lose your sense of humour....





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707080735.IAA04146>