From 7509fa17da221e4c47a047e9de4287ec61e21617 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 15 May 2016 20:40:49 +0200 Subject: [PATCH] getexpress(), transform pscopy(,x,y,) --> pscopy(,x+y,y-y,) (requirement strlen(x) >= y to be verified later) --- src/frontend/numparam/xpressn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index c3fcaecd1..77adcdd9c 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -1408,7 +1408,7 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi) tpe = NUPA_REAL; } - pscopy(tstr_p, s, (int)(ia_ptr - s)-1, (int) (iptr - ia_ptr)); + pscopy(tstr_p, ia_ptr - 1, 0, (int) (iptr - ia_ptr)); if (iptr[-1] == '}') iptr++;