nupa_substitute(), use `strncasecmp()'

This commit is contained in:
rlar 2016-05-01 15:54:54 +02:00
parent c036fa0519
commit 2a446c2119
1 changed files with 1 additions and 1 deletions

View File

@ -1231,7 +1231,7 @@ nupa_substitute(dico_t *dico, const char *s, char *r)
} else {
pscopy(&tstr, s, 0, (int) (kptr - s - 1));
/* exeption made for .meas */
if (strcasecmp(spice_dstring_value(&tstr), "LAST") == 0) {
if (s + 4 == kptr - 1 && strncasecmp(s, "LAST", 4) == 0) {
spice_dstring_reinit(&qstr);
sadd(&qstr, "last");
err = 0;