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:
parent
60f2606a7d
commit
efaed24f7d
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user