From 68b0be8caad7d562381383ba9457a7fb96c821ef Mon Sep 17 00:00:00 2001 From: rlar Date: Fri, 6 May 2016 20:27:07 +0200 Subject: [PATCH] getword(), (s <= x) --> (s - 1 < x) --- src/frontend/numparam/xpressn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index 1367ecbb3..66ad227aa 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -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++; }