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