diff options
author | Guido van Rossum <guido@python.org> | 1995-09-21 20:36:34 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-09-21 20:36:34 (GMT) |
commit | 3f6bb865939e7bf0587a63ac8ff067cc5486b940 (patch) | |
tree | 6e21329bf3b359e67966c0958fbe3f94e0aada4e | |
parent | 194e20a9dbfb1f91bbd480b2e1d8a9497ca47763 (diff) | |
download | cpython-3f6bb865939e7bf0587a63ac8ff067cc5486b940.zip cpython-3f6bb865939e7bf0587a63ac8ff067cc5486b940.tar.gz cpython-3f6bb865939e7bf0587a63ac8ff067cc5486b940.tar.bz2 |
fix bogus resize length in nextc
-rw-r--r-- | Parser/tokenizer.c | 2 |
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) { |