From a3311c9b09063ace8e2a9d7d7ea27bf0bdb21c59 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 3 Sep 2023 14:01:20 +0200 Subject: [PATCH] Fix incorrect port of write_to_fd --- fish-rust/src/wutil/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/fish-rust/src/wutil/mod.rs b/fish-rust/src/wutil/mod.rs index 23095e43c..6d4cac66e 100644 --- a/fish-rust/src/wutil/mod.rs +++ b/fish-rust/src/wutil/mod.rs @@ -457,6 +457,7 @@ pub fn wwrite_to_fd(input: &wstr, fd: RawFd) -> Option { 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.