findsubname(), just truncate it
This commit is contained in:
parent
5e6fe75db6
commit
d647a84e66
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue