findsubckt(), move k_ptr-- beyond the loop
This commit is contained in:
parent
b0b4551d68
commit
8cd136c6bd
|
|
@ -561,8 +561,8 @@ findsubckt(dico_t *dico, const char * const s)
|
||||||
|
|
||||||
j_ptr = k_ptr - 1;
|
j_ptr = k_ptr - 1;
|
||||||
|
|
||||||
|
while ((k_ptr - 1 >= s) && (*(k_ptr-1) > ' '))
|
||||||
k_ptr--;
|
k_ptr--;
|
||||||
while ((k_ptr >= s) && (*k_ptr > ' '))
|
|
||||||
k_ptr--;
|
k_ptr--;
|
||||||
|
|
||||||
pscopy_up(&ustr, k_ptr + 1, 0, (int) (j_ptr - k_ptr));
|
pscopy_up(&ustr, k_ptr + 1, 0, (int) (j_ptr - k_ptr));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue