nupa_substitute(), postpone `s' incrementation
This commit is contained in:
parent
ad1eeeb410
commit
cba740f88d
|
|
@ -1271,12 +1271,12 @@ nupa_substitute(dico_t *dico, const char *s, char *r)
|
|||
} else {
|
||||
/* simple identifier may also be string? */
|
||||
|
||||
const char *kptr = ++s;
|
||||
const char *kptr = s + 1;
|
||||
for (; kptr < s_end; kptr++)
|
||||
if (*kptr <= ' ')
|
||||
break;
|
||||
|
||||
err = evaluate_variable(dico, &qstr, s - 1, kptr);
|
||||
err = evaluate_variable(dico, &qstr, s, kptr);
|
||||
s = kptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue