Browse Source

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

pre-master-46
rlar 10 years ago
parent
commit
f96eb16255
  1. 2
      src/frontend/numparam/xpressn.c

2
src/frontend/numparam/xpressn.c

@ -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…
Cancel
Save