mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
fix bogus resize length in nextc
This commit is contained in:
parent
194e20a9db
commit
3f6bb86593
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue