getword(), substitute s = s - 1
This commit is contained in:
parent
68b0be8caa
commit
d6801c0cf1
|
|
@ -1326,12 +1326,12 @@ getword(const char *s, const char * const s_end, SPICE_DSTRINGPTR tstr_p)
|
||||||
|
|
||||||
spice_dstring_reinit(tstr_p);
|
spice_dstring_reinit(tstr_p);
|
||||||
|
|
||||||
while ((s - 1 < s_end) && (alfa(s[-1]) || isdigit_c(s[-1]))) {
|
s--;
|
||||||
cadd(tstr_p, toupper_c(s[-1]));
|
|
||||||
s++;
|
|
||||||
}
|
|
||||||
|
|
||||||
return s;
|
while ((s < s_end) && (alfa(*s) || isdigit_c(*s)))
|
||||||
|
cadd(tstr_p, toupper_c(*s++));
|
||||||
|
|
||||||
|
return s + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue