diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-02 06:32:01 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-02 06:32:01 +0000 |
commit | 82ec8baa955a45e385569251de9b4da0d82ce5da (patch) | |
tree | a0abee77ec4a77ba307040a7fb6324d358022b16 | |
parent | 77049334aa25b0bc93558b443e5f6072cb3a932c (diff) | |
download | ruby-82ec8baa955a45e385569251de9b4da0d82ce5da.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | win32/win32.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Thu Dec 2 15:31:14 2010 NAKAMURA Usaku <usa@ruby-lang.org> + + * win32/win32.c (rb_w43_read): more fix. [ruby-core:33513] + Thu Dec 2 13:41:43 2010 NAKAMURA Usaku <usa@ruby-lang.org> * win32/win32.c (rb_w32_read): workaround for console reading troubles. 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; } |