We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47b99eb commit 0cfd142Copy full SHA for 0cfd142
crates/libs/kill_tree/src/macos.rs
@@ -35,7 +35,7 @@ pub(crate) async fn get_process_info(process_id: ProcessId) -> Option<ProcessInf
35
debug!(error = ?error, process_id, "failed to get process info");
36
return None;
37
}
38
- let name = unsafe { CStr::from_ptr(&proc_bsdinfo.pbi_name[0] as *const i8) }
+ let name = unsafe { CStr::from_ptr(std::ptr::addr_of!(proc_bsdinfo.pbi_name[0])) }
39
.to_string_lossy()
40
.to_string();
41
Some(ProcessInfo {
0 commit comments