nupa_substitute(), postpone `s' incrementation

This commit is contained in:
rlar 2016-05-05 22:37:55 +02:00
parent ad1eeeb410
commit cba740f88d
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}