Subject: CVS commit: src/usr.bin/sed
To: None <source-changes@NetBSD.org>
From: Min Sik Kim <minskim@netbsd.org>
List: source-changes
Date: 06/12/2004 04:29:22
Module Name:	src
Committed By:	minskim
Date:		Sat Jun 12 04:29:22 UTC 2004

Modified Files:
	src/usr.bin/sed: compile.c

Log Message:
Fix a bug that made sed(1) fail if the last character of the line
buffer was a backslash.  This closes PR bin/25899.

Patch was borrowed from FreeBSD.  Their log says:

    Fix a bug in sed(1)'s "s" command wherein if an escape ("\"
    character) was initiated at the last character of the line buffer,
    the Wrong Thing was done and sed barfed by interpreting the
    following NUL byte as a digit.  Instead, pull up the next buffer
    and record that the "\" was last seen.

OK'ed by jmc@.


To generate a diff of this commit:
cvs rdiff -r1.25 -r1.26 src/usr.bin/sed/compile.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.