From 795cc6661653bfb04f601ef4babaf2997528521a Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 5 Jun 2003 11:09:51 +0000 Subject: users/1654: anchors did'nt work with // parameter substitution --- Src/subst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/subst.c b/Src/subst.c index 256e6d032..8e81073b5 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -1349,7 +1349,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub) if ((c = *s) == '/') { /* doubled, so replace all occurrences */ flags |= SUB_GLOBAL; - s++; + c = *++s; } /* Check for anchored substitution */ if (c == '%') { -- cgit 1.4.1