findsubckt(), exclude the terminating '\0' from the search

This commit is contained in:
rlar 2016-05-14 11:09:35 +02:00
parent a0f9b2bf0f
commit e1f5609568
1 changed files with 1 additions and 0 deletions

View File

@ -556,6 +556,7 @@ findsubckt(dico_t *dico, const char * const s)
spice_dstring_init(&ustr);
k_ptr--;
while ((k_ptr >= s) && (*k_ptr <= ' '))
k_ptr--;