summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-09-21 20:36:34 (GMT)
committerGuido van Rossum <guido@python.org>1995-09-21 20:36:34 (GMT)
commit3f6bb865939e7bf0587a63ac8ff067cc5486b940 (patch)
tree6e21329bf3b359e67966c0958fbe3f94e0aada4e /Parser
parent194e20a9dbfb1f91bbd480b2e1d8a9497ca47763 (diff)
downloadcpython-3f6bb865939e7bf0587a63ac8ff067cc5486b940.zip
cpython-3f6bb865939e7bf0587a63ac8ff067cc5486b940.tar.gz
cpython-3f6bb865939e7bf0587a63ac8ff067cc5486b940.tar.bz2
fix bogus resize length in nextc
Diffstat (limited to 'Parser')
-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) {