summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-04-12 19:46:05 +0000
committersobomax <sobomax@FreeBSD.org>2002-04-12 19:46:05 +0000
commit08c080ac1d1cc4795ab4937a53219d8d9d75f1fe (patch)
tree48d378985ac75a40b27d325df172ba5aef9df70b /usr.bin/sed
parent1720bac84c28badd43c9edcde53d951a4b27178f (diff)
downloadFreeBSD-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')
-rw-r--r--usr.bin/sed/compile.c2
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')
OpenPOWER on IntegriCloud