Fix an ages-old bug in sed(1), which resulted in the absolutely valid

substitution expressions in the form `s,[fooexp],[barexp],;...' treated
as invalid when the third `,' is (_POSIX2_LINE_MAX * N)-th character in
the line.

MFC after:	2 weeks
This commit is contained in:
sobomax 2002-04-12 19:46:05 +00:00
parent bd23090f7c
commit 084230c015

View File

@ -467,7 +467,7 @@ compile_subst(p, s)
int asize, size;
u_char ref;
char c, *text, *op, *sp;
int more = 0;
int more = 1;
c = *p++; /* Terminator character */
if (c == '\0')