mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 10:31:14 -03:00
Fix incorrect port of write_to_fd
This commit is contained in:
@@ -457,6 +457,7 @@ fn do_write(fd: RawFd, total_written: &mut usize, mut buf: &[u8]) -> bool {
|
||||
unsafe {
|
||||
std::ptr::copy(&buff[0], &mut accum[accumlen], buff.len());
|
||||
}
|
||||
accumlen += buff.len();
|
||||
true
|
||||
} else {
|
||||
// Too much data to even fit, just write it immediately.
|
||||
|
||||
Reference in New Issue
Block a user