diff options
Diffstat (limited to 'libversit/vcc.y')
-rw-r--r-- | libversit/vcc.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libversit/vcc.y b/libversit/vcc.y index 26912a14dd..ad607cf4fe 100644 --- a/libversit/vcc.y +++ b/libversit/vcc.y @@ -634,7 +634,7 @@ static void lexAppendc(int c) /* append up to zero termination */ if (c == 0) return; lexBuf.strsLen++; - if (lexBuf.strsLen > lexBuf.maxToken) { + if (lexBuf.strsLen >= lexBuf.maxToken) { /* double the token string size */ lexBuf.maxToken <<= 1; lexBuf.strs = (char*) realloc(lexBuf.strs,(size_t)lexBuf.maxToken); |