defsubckt(), fix lvalue

This commit is contained in:
rlar 2016-05-08 18:44:59 +02:00
parent 4e89b80a75
commit deca1a05ed
1 changed files with 1 additions and 2 deletions

View File

@ -513,8 +513,7 @@ defsubckt(dico_t *dico, struct card *card, nupa_type categ)
bool err;
int i, j;
const char * const ls_ptr;
(ls_ptr - s) = (int) strlen(s);
const char * const ls_ptr = s + strlen(s);
i = 0;
while ((i < (ls_ptr - s)) && (s[i] != '.'))