From 1157142dfd684aa62787cdf396d62c56bcd265d3 Mon Sep 17 00:00:00 2001 From: rlar Date: Mon, 16 May 2016 21:38:22 +0200 Subject: [PATCH] nupa_subcktcall(), simplify --- src/frontend/numparam/xpressn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index d308442f6..2eb03b611 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -1661,9 +1661,8 @@ nupa_subcktcall(dico_t *dico, char *s, char * const x, char * const inst_name) /* replace dollar with expression string u */ pscopy(&vstr, spice_dstring_value(&idlist), 0, kk); sadd(&vstr, spice_dstring_value(&ustr)); - pscopy(&ustr, spice_dstring_value(&idlist), kk+1, spice_dstring_length(&idlist)); + sadd(&vstr, spice_dstring_value(&idlist) + kk + 1); scopyd(&idlist, &vstr); - sadd(&idlist, spice_dstring_value(&ustr)); } narg++; }