Bill Fenner 99907703d9 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-05-01 16:58:57 +00:00
2003-05-01 16:58:57 +00:00
2003-05-01 16:58:57 +00:00
2003-02-23 01:47:49 +00:00
2003-05-01 16:58:57 +00:00
2003-05-19 15:52:01 +00:00
2002-11-26 17:55:41 +00:00
2003-02-23 01:43:45 +00:00
2003-05-01 16:58:57 +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
2003-05-03 20:52:48 +00:00
2003-05-01 16:58:57 +00:00
2003-05-01 16:58:57 +00:00
2003-05-01 16:58:57 +00:00
2003-05-22 13:10:32 +00:00
2003-02-18 19:51:59 +00:00