diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-10-02 11:47:38 -0700 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-10-02 11:47:38 -0700 |
| commit | 2f365ffdad40475e8f70f7af7f210d6c597b60f5 (patch) | |
| tree | 51154f8a256deb911f52558b4355fcb68bf2ea4e /src/libnative | |
| parent | b2d4eb186e99b66051be9089f836c66a558dd995 (diff) | |
| download | rust-2f365ffdad40475e8f70f7af7f210d6c597b60f5.tar.gz rust-2f365ffdad40475e8f70f7af7f210d6c597b60f5.zip | |
Revert "Review and rebasing changes"
This reverts commit 6e0611a48707a1f5d90aee32a02b2b15957ef25b.
Diffstat (limited to 'src/libnative')
| -rw-r--r-- | src/libnative/io/pipe_windows.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnative/io/pipe_windows.rs b/src/libnative/io/pipe_windows.rs index 5475de6d7e1..2de9cd9a41c 100644 --- a/src/libnative/io/pipe_windows.rs +++ b/src/libnative/io/pipe_windows.rs @@ -448,7 +448,7 @@ impl rtio::RtioPipe for UnixStream { } let ret = unsafe { libc::WriteFile(self.handle(), - buf[offset..].as_ptr() as libc::LPVOID, + buf.slice_from(offset).as_ptr() as libc::LPVOID, (buf.len() - offset) as libc::DWORD, &mut bytes_written, &mut overlapped) |
