From 257a9db4f36d7c6b8766ba42926435c7220adf99 Mon Sep 17 00:00:00 2001 From: Vadim Strizhevsky Date: Sun, 7 May 2000 18:28:47 +0000 Subject: Fix off by one error. svn path=/trunk/; revision=2877 --- libversit/vcc.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libversit/vcc.y') 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); -- cgit v1.2.3