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