From owner-cvs-usrbin Wed Jul 17 05:18:59 1996 Return-Path: owner-cvs-usrbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA03629 for cvs-usrbin-outgoing; Wed, 17 Jul 1996 05:18:59 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA03611; Wed, 17 Jul 1996 05:18:52 -0700 (PDT) Date: Wed, 17 Jul 1996 05:18:52 -0700 (PDT) From: Bruce Evans Message-Id: <199607171218.FAA03611@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/sed compile.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 96/07/17 05:18:52 Modified: usr.bin/sed compile.c Log: Yet^2 another fix for the line continuation bug. The fundamental problem with the original code is that it accesses p[-2] which is one before the beginning of the input buffer for empty lines. rev.1.6 just moved the problem from failures when p[-2] happens to be '\\' to failures when it happens to be '\0'. rev.1.5 was confused about the trailing newline and other things. I went back to rev.1.5 and fixed it. The result is the same as Keith Bostic's final version in PR 1356 except it loses more gracefully for excessively long input lines. Revision Changes Path 1.7 +5 -5 src/usr.bin/sed/compile.c