When I apply this (David's) patch to the 0.15.1 code, I no longer get the invalid buffer size error. Jason --- lexer.c 2 Sep 2003 16:19:04 -0000 1.63 +++ lexer.c 2 Sep 2003 21:13:50 -0000 @@ -205,6 +206,8 @@ convert_eol(text, ' '); } } + if (buff->size - count < 1000) + break; } return count; }