nupa_subcktcall(), fix excess length in pscopy argument

This commit is contained in:
rlar 2016-05-15 19:44:30 +02:00
parent 8190ba3fca
commit b8f4b3e27e
1 changed files with 1 additions and 1 deletions

View File

@ -1542,7 +1542,7 @@ nupa_subcktcall(dico_t *dico, char *s, char *x, char *inst_name)
if (i >= 0) {
const char *optr, *jptr;
pscopy(&tstr, spice_dstring_value(&tstr), i + 7, spice_dstring_length(&tstr));
pscopy(&tstr, spice_dstring_value(&tstr), i + 7, (int) strlen(spice_dstring_value(&tstr) + i + 7));
/* search identifier to the left of '=' assignments */