getword(), (s <= x) --> (s - 1 < x)

This commit is contained in:
rlar 2016-05-06 20:27:07 +02:00
parent 10aaa7bcc0
commit 68b0be8caa
1 changed files with 1 additions and 1 deletions

View File

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