From d139ae56432a82a3dbe11f4be89ba7d886f2c177 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 22 Sep 1999 12:35:20 +0000 Subject: zsh-3.1.6-pws-5 --- Src/subst.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Src/subst.c') diff --git a/Src/subst.c b/Src/subst.c index 5b08d0bfb..b0bb885c9 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -152,8 +152,7 @@ stringsubst(LinkList list, LinkNode node, int ssub) *str++ = '\0'; if (endchar == Outpar && str2[1] == '(' && str[-2] == ')') { /* Math substitution of the form $((...)) */ - str[-2] = '\0'; - str = arithsubst(str2 + 2, &str3, str); + str = arithsubst(str2 + 1, &str3, str); setdata(node, (void *) str3); continue; } -- cgit 1.4.1