fenner 99d6402b40 Instead of eating trailing newlines after inserting them into the
output buffer, don't insert them at all.  This prevents a buffer
*underrun* when the substitution consists completely of newlines
(e.g. `echo`) and the byte before the source buffer to which p
points is a '\n', in which case more characters would be removed
from the output buffer than were inserted.

This fixes certain port builds on sparc64.

Approved by:	re (scottl)
Reviewed by:	des, tjr
2003-05-31 06:27:57 +00:00
..
2003-02-05 13:23:46 +00:00
2003-05-01 16:58:57 +00:00
2003-05-01 16:58:57 +00:00
2002-10-30 06:34:52 +00:00
2003-05-01 16:58:57 +00:00
2003-05-01 16:58:57 +00:00
2003-05-05 22:49:23 +00:00