findsubname(), just truncate it

This commit is contained in:
rlar 2017-11-22 21:56:06 +01:00
parent 5e6fe75db6
commit d647a84e66
1 changed files with 1 additions and 2 deletions

View File

@ -193,8 +193,7 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p)
cadd(&name, toupper_c(*t)); cadd(&name, toupper_c(*t));
entry = entrynb(dico, spice_dstring_value(&name)); entry = entrynb(dico, spice_dstring_value(&name));
if (entry && (entry->tp == NUPA_SUBCKT)) { if (entry && (entry->tp == NUPA_SUBCKT)) {
if (p_end < ls_ptr) spice_dstring_setlength(dstr_p, (int) (p_end - s));
pscopy(dstr_p, s, 0, (int) (p_end - s));
return; return;
} }
} }