Fix incorrect port of write_to_fd

This commit is contained in:
Johannes Altmanninger 2023-09-03 14:01:20 +02:00
parent c17fc65321
commit a3311c9b09

View File

@ -457,6 +457,7 @@ pub fn wwrite_to_fd(input: &wstr, fd: RawFd) -> Option<usize> {
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.