Subject: re: bin/28492 (more(1) doesn't handle NUL data blocks well)
To: None <tron@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: matthew green <mrg@eterna.com.au>
List: netbsd-bugs
Date: 09/26/2006 20:45:02
The following reply was made to PR bin/28492; it has been noted by GNATS.
From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc: tron@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
bsd@allegory.demon.co.uk
Subject: re: bin/28492 (more(1) doesn't handle NUL data blocks well)
Date: Wed, 27 Sep 2006 06:43:09 +1000
hmm, please try the follow patch. (i found it in PR#17911.)
Index: less/ch.c
===================================================================
RCS file: /cvsroot/src/usr.bin/less/less/ch.c,v
retrieving revision 1.7
diff -p -r1.7 ch.c
*** less/ch.c 14 Apr 2003 02:56:46 -0000 1.7
--- less/ch.c 26 Sep 2006 20:42:43 -0000
*************** struct filestate {
*** 95,101 ****
static struct filestate *thisfile;
static int ch_ungotchar = -1;
! static int maxbufs = -1;
extern int autobuf;
extern int sigs;
--- 95,101 ----
static struct filestate *thisfile;
static int ch_ungotchar = -1;
! static int maxbufs = 8;
extern int autobuf;
extern int sigs;