Skip to content

(HP-UX) scan: last line gets duplicated (PR#790)

1 message · Peter Kleiweg

#
Peter Kleiweg skriver...
The bug fix I mailed yesterday does fix the bug, but also
introduces a new one: requested trimming of trailing white space
doesn't happen anymore. Here is a correct patch:


*** src/main/scan.c	Sat Dec  2 19:42:25 2000
--- src/main/scan.c.new	Sat Dec 23 10:02:34 2000
***************
*** 240,246 ****
      }
   donefill:
      if (strip) {
! 	while (isspace((int)*--bufp))
  	    ;
  	bufp++;
      }
--- 240,246 ----
      }
   donefill:
      if (strip) {
! 	while (--bufp >= buffer && isspace((int)*bufp))
  	    ;
  	bufp++;
      }