diff --git a/core/tauri/src/lib.rs b/core/tauri/src/lib.rs index a66aca8bd832..2665821b56f0 100644 --- a/core/tauri/src/lib.rs +++ b/core/tauri/src/lib.rs @@ -242,7 +242,7 @@ pub fn log_stdout() { if let Ok(len) = reader.read_line(&mut buffer) { if len == 0 { break; - } else if let Ok(msg) = CString::new(buffer.clone()) + } else if let Ok(msg) = CString::new(buffer.as_bytes()) .map_err(|_| ()) .and_then(|c| c.into_string().map_err(|_| ())) {