From: Michal Rokos Date: 2002-08-30T22:28:09+09:00 Subject: [Patch] io.c read_all Hello, ===========================ChangeLog=============================== Thu Aug 29 13:36:42 2002 WATANABE Hirofumi * io.c (read_all): should use off_t instead of long. ===========================ChangeLog=============================== thanks for spotting it and correcting. Please, do this as well, to have it complete. Thank you. Michal Index: io.c =================================================================== RCS file: /src/ruby/io.c,v retrieving revision 1.153 diff -u -p -r1.153 io.c --- io.c 2002/08/29 04:38:37 1.153 +++ io.c 2002/08/30 13:22:53 @@ -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) { -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michal Rokos Czech Technical University, Prague E-mail:m.rokos@sh.cvut.cz ICQ:36118339 Jabber:majkl@jabber.cz -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-