From efaed24f7dc08f062643bc2bd007ad9afcfc2b75 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Fri, 12 Apr 2002 19:46:05 +0000 Subject: [PATCH] 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 --- usr.bin/sed/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c index d26df5611933..20762974e60e 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')