findsubckt(), transform pscopy(,x,y,) --> pscopy(,x+y,y-y,) (requirement strlen(x) >= y to be verified later)

This commit is contained in:
rlar 2017-11-18 18:21:54 +01:00
parent c486218e33
commit f4bd03a00f
1 changed files with 1 additions and 1 deletions

View File

@ -564,7 +564,7 @@ findsubckt(dico_t *dico, const char * const s)
while ((k_ptr >= s) && (*k_ptr > ' '))
k_ptr--;
pscopy_up(&ustr, s, (int) (k_ptr - s) + 1, (int) (j_ptr - k_ptr));
pscopy_up(&ustr, s + (k_ptr - s) + 1, 0, (int) (j_ptr - k_ptr));
entry = entrynb(dico, spice_dstring_value(&ustr));
if (entry && (entry->tp == NUPA_SUBCKT)) {