summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-02 06:32:01 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-02 06:32:01 +0000
commit82ec8baa955a45e385569251de9b4da0d82ce5da (patch)
treea0abee77ec4a77ba307040a7fb6324d358022b16 /win32
parent77049334aa25b0bc93558b443e5f6072cb3a932c (diff)
* 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
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
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;
}