diff options
author | Vadim Strizhevsky <vadim@src.gnome.org> | 2000-05-08 02:28:47 +0800 |
---|---|---|
committer | Vadim Strizhevsky <vadim@src.gnome.org> | 2000-05-08 02:28:47 +0800 |
commit | 257a9db4f36d7c6b8766ba42926435c7220adf99 (patch) | |
tree | da36481cd7f2c3e17f58de3ec93ea7c3265c02ab | |
parent | 2043f685bae1373a3ea7b249ecc8e34990cf707c (diff) | |
download | gsoc2013-evolution-257a9db4f36d7c6b8766ba42926435c7220adf99.tar gsoc2013-evolution-257a9db4f36d7c6b8766ba42926435c7220adf99.tar.gz gsoc2013-evolution-257a9db4f36d7c6b8766ba42926435c7220adf99.tar.bz2 gsoc2013-evolution-257a9db4f36d7c6b8766ba42926435c7220adf99.tar.lz gsoc2013-evolution-257a9db4f36d7c6b8766ba42926435c7220adf99.tar.xz gsoc2013-evolution-257a9db4f36d7c6b8766ba42926435c7220adf99.tar.zst gsoc2013-evolution-257a9db4f36d7c6b8766ba42926435c7220adf99.zip |
Fix off by one error.
svn path=/trunk/; revision=2877
-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); |