Subject: re: bin/28492 (more(1) doesn't handle NUL data blocks well)
To: None <gnats-bugs@NetBSD.org>
From: matthew green <mrg@eterna.com.au>
List: netbsd-bugs
Date: 09/27/2006 06:43:09
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;