aboutsummaryrefslogtreecommitdiffstats
path: root/libversit/vcc.y
diff options
context:
space:
mode:
authorVadim Strizhevsky <vadim@src.gnome.org>2000-05-08 02:28:47 +0800
committerVadim Strizhevsky <vadim@src.gnome.org>2000-05-08 02:28:47 +0800
commit257a9db4f36d7c6b8766ba42926435c7220adf99 (patch)
treeda36481cd7f2c3e17f58de3ec93ea7c3265c02ab /libversit/vcc.y
parent2043f685bae1373a3ea7b249ecc8e34990cf707c (diff)
downloadgsoc2013-evolution-257a9db4f36d7c6b8766ba42926435c7220adf99.tar.gz
gsoc2013-evolution-257a9db4f36d7c6b8766ba42926435c7220adf99.tar.zst
gsoc2013-evolution-257a9db4f36d7c6b8766ba42926435c7220adf99.zip
Fix off by one error.
svn path=/trunk/; revision=2877
Diffstat (limited to 'libversit/vcc.y')
-rw-r--r--libversit/vcc.y2
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);