summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-02 08:05:39 +0000
committermichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-02 08:05:39 +0000
commitaa7a6c470c60b5e59ff79ddfd59d7445b37a29ea (patch)
tree0232bec130593de5f299564b146e6392c181cdb0
parentebb48b1bcbc407ba4994e5989b332aa10c045bf5 (diff)
downloadruby-aa7a6c470c60b5e59ff79ddfd59d7445b37a29ea.tar.gz
ruby-aa7a6c470c60b5e59ff79ddfd59d7445b37a29ea.tar.xz
ruby-aa7a6c470c60b5e59ff79ddfd59d7445b37a29ea.zip
read_all ftello (instead ftell) (ruby-core:392)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index f28a4d9f8..7de74befd 100644
--- a/io.c
+++ b/io.c
@@ -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) {