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:
Maxim Sobolev 2002-04-12 19:46:05 +00:00
parent 60f2606a7d
commit efaed24f7d

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')