diff options
author | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-02 08:05:39 +0000 |
---|---|---|
committer | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-02 08:05:39 +0000 |
commit | 438ea009692d69c5c5bbc60822d3577ebd5f330f (patch) | |
tree | 0232bec130593de5f299564b146e6392c181cdb0 /io.c | |
parent | 844de6b24b8152dc2f11ef3636e1dae91978a6f3 (diff) |
read_all ftello (instead ftell) (ruby-core:392)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -648,7 +648,7 @@ read_all(fptr, siz) READ_CHECK(fptr->f); if (!siz) siz = BUFSIZ; str = rb_tainted_str_new(0, siz); - pos = ftell(fptr->f); + pos = ftello(fptr->f); for (;;) { n = rb_io_fread(RSTRING(str)->ptr+bytes, siz-bytes, fptr->f); if (pos > 0 && n == 0 && bytes == 0) { |