summaryrefslogtreecommitdiffstats
path: root/Parser/tokenizer.c
diff options
context:
space:
mode:
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r--Parser/tokenizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index 896b0ce..645096a 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -272,7 +272,7 @@ tok_nextc(tok)
tok->start - tok->buf;
int curvalid = tok->inp - tok->buf;
int cursize = tok->end - tok->buf;
- int newsize = cursize + BUFSIZ;
+ int newsize = curvalid + BUFSIZ;
char *newbuf = tok->buf;
RESIZE(newbuf, char, newsize);
if (newbuf == NULL) {