diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 2 |
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; } |