Kaydet (Commit) 3f6bb865 authored tarafından Guido van Rossum's avatar Guido van Rossum

fix bogus resize length in nextc

üst 194e20a9
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment