diff --git a/src/uu/touch/src/touch.rs b/src/uu/touch/src/touch.rs index e8c4fcd2f..3a2fca676 100644 --- a/src/uu/touch/src/touch.rs +++ b/src/uu/touch/src/touch.rs @@ -491,7 +491,7 @@ fn pathbuf_from_stdout() -> UResult { // to a u32. let ret = unsafe { GetFinalPathNameByHandleW( - std::mem::transmute(handle), + handle, file_path_buffer.as_mut_ptr(), file_path_buffer.len() as u32, FILE_NAME_OPENED,