getword(), (s < x) ==> (s - 1 < x - 1)
This commit is contained in:
parent
cc452a4c90
commit
f96eb16255
|
|
@ -1321,7 +1321,7 @@ getword(const char *s, const char * const s_end, SPICE_DSTRINGPTR tstr_p)
|
|||
/* isolate a word from s after position "after". return i= last read+1 */
|
||||
{
|
||||
s++;
|
||||
while ((s < s_end) && !alfa(s[-1]))
|
||||
while ((s-1 < s_end - 1) && !alfa(s[-1]))
|
||||
s++;
|
||||
|
||||
spice_dstring_reinit(tstr_p);
|
||||
|
|
|
|||
Loading…
Reference in New Issue