Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/sed



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.




Home | Main Index | Thread Index | Old Index