aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--win32/win32.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 742f758562..d1f8644ac0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;
}