diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-04-12 19:46:05 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-04-12 19:46:05 +0000 |
commit | 08c080ac1d1cc4795ab4937a53219d8d9d75f1fe (patch) | |
tree | 48d378985ac75a40b27d325df172ba5aef9df70b /usr.bin/sed/compile.c | |
parent | 1720bac84c28badd43c9edcde53d951a4b27178f (diff) | |
download | FreeBSD-src-08c080ac1d1cc4795ab4937a53219d8d9d75f1fe.zip FreeBSD-src-08c080ac1d1cc4795ab4937a53219d8d9d75f1fe.tar.gz |
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
Diffstat (limited to 'usr.bin/sed/compile.c')
-rw-r--r-- | usr.bin/sed/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c index d26df56..2076297 100644 --- a/usr.bin/sed/compile.c +++ b/usr.bin/sed/compile.c @@ -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') |