From 438ea009692d69c5c5bbc60822d3577ebd5f330f Mon Sep 17 00:00:00 2001 From: michal Date: Mon, 2 Sep 2002 08:05:39 +0000 Subject: 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 --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') diff --git a/io.c b/io.c index f28a4d9f84..7de74befde 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) { -- cgit v1.2.3