From 82ec8baa955a45e385569251de9b4da0d82ce5da Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 2 Dec 2010 06:32:01 +0000 Subject: * win32/win32.c (rb_w43_read): more fix. [ruby-core:33513] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32/win32.c') diff --git a/win32/win32.c b/win32/win32.c index 0d99c6e6b8..590700bceb 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -5153,7 +5153,7 @@ rb_w32_read(int fd, void *buf, size_t size) ret += read; if (read >= len) { - buf = (char *)buf + len; + buf = (char *)buf + read; if (!(isconsole && len == 1 && *((char *)buf - 1) == '\n') && size > 0) goto retry; } -- cgit v1.2.3