mirror of
https://github.com/python/cpython.git
synced 2024-11-27 11:55:13 +08:00
Think C 4.0 fixes a bug in 3.0 that we programmed around.
This commit is contained in:
parent
6607f449be
commit
59b3590711
@ -188,8 +188,8 @@ file_readline(f, args)
|
||||
v = newsizedstringobject((char *)NULL, n);
|
||||
if (v == NULL)
|
||||
return NULL;
|
||||
#ifndef THINK_C
|
||||
/* XXX Think C reads n characters, others read n-1 characters... */
|
||||
#ifndef THINK_C_3_0
|
||||
/* XXX Think C 3.0 wrongly reads up to n characters... */
|
||||
n = n+1;
|
||||
#endif
|
||||
if (fgets(getstringvalue(v), n, f->f_fp) == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user