Skip to content

Commit a2e2c32

Browse files
committed
update type
1 parent 7eecd9e commit a2e2c32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/fspy_preload_unix/src/interceptions/linux_syscall.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::ffi::c_long;
1+
use std::ffi::{c_char, c_long};
22

33
use fspy_shared::ipc::AccessMode;
44

@@ -20,7 +20,7 @@ unsafe extern "C" fn syscall(syscall_no: c_long, mut args: ...) -> c_long {
2020
match syscall_no {
2121
libc::SYS_statx => {
2222
if let Ok(dirfd) = i32::try_from(a0) {
23-
let pathname = a1 as *const u8;
23+
let pathname = a1 as *const c_char;
2424
unsafe {
2525
handle_open(PathAt(dirfd, pathname), AccessMode::Read);
2626
}

0 commit comments

Comments
 (0)