Skip to content

Commit

Permalink
fix char issue once again
Browse files Browse the repository at this point in the history
  • Loading branch information
kp2pml30 committed Oct 8, 2024
1 parent f604b6c commit 844e961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executor/src/wasi/genlayer_sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ impl Context {
}

fn vec_from_cstr_libc(str: *const u8) -> Arc<[u8]> {
let res = Arc::from(unsafe { CStr::from_ptr(str as *const i8) }.to_bytes());
let res = Arc::from(unsafe { CStr::from_ptr(str as *const std::ffi::c_char) }.to_bytes());
unsafe {
libc::free(str as *mut std::ffi::c_void);
}
Expand Down

0 comments on commit 844e961

Please sign in to comment.