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

This commit is contained in:
rlar 2016-05-06 20:32:14 +02:00
parent cc452a4c90
commit f96eb16255
1 changed files with 1 additions and 1 deletions

View File

@ -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);