findsubckt(), move k_ptr-- beyond the loop

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

View File

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