findsubckt(), cleanup

This commit is contained in:
rlar 2016-05-14 11:23:38 +02:00
parent 51405f8ee7
commit 23b741868b
1 changed files with 3 additions and 3 deletions

View File

@ -556,15 +556,15 @@ findsubckt(dico_t *dico, const char * const s)
spice_dstring_init(&ustr);
while ((k_ptr - 1 >= s) && (*(k_ptr-1) <= ' '))
while ((k_ptr > s) && (k_ptr[-1] <= ' '))
k_ptr--;
name_e = k_ptr;
while ((k_ptr - 1 >= s) && (*(k_ptr-1) > ' '))
while ((k_ptr > s) && (k_ptr[-1] > ' '))
k_ptr--;
pscopy_up(&ustr, k_ptr - 1 + 1, 0, (int) ((name_e - 1) - (k_ptr - 1)));
pscopy_up(&ustr, k_ptr, 0, (int) (name_e - k_ptr));
entry = entrynb(dico, spice_dstring_value(&ustr));
if (entry && (entry->tp == NUPA_SUBCKT)) {