diff options
author | Guido van Rossum <guido@python.org> | 1991-01-02 13:51:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-01-02 13:51:41 (GMT) |
commit | 59b3590711b11eec91a67941cd2bdfd814d7d918 (patch) | |
tree | 645968443e61e8ed32447ac1443abd55c32fd45d | |
parent | 6607f449be219742f12e5b6d9f00e15314af162d (diff) | |
download | cpython-59b3590711b11eec91a67941cd2bdfd814d7d918.zip cpython-59b3590711b11eec91a67941cd2bdfd814d7d918.tar.gz cpython-59b3590711b11eec91a67941cd2bdfd814d7d918.tar.bz2 |
Think C 4.0 fixes a bug in 3.0 that we programmed around.
-rw-r--r-- | Objects/fileobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 09690c6..f87e22e 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -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) { |