fix bogus resize length in nextc

This commit is contained in:
Guido van Rossum 1995-09-21 20:36:34 +00:00
parent 194e20a9db
commit 3f6bb86593
1 changed files with 1 additions and 1 deletions

View File

@ -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) {