findsubckt(), drop k_ptr--, use k_ptr - 1 instead

This commit is contained in:
rlar 2016-05-14 11:19:42 +02:00
parent 8cd136c6bd
commit 3d9a76d342
1 changed files with 1 additions and 2 deletions

View File

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