Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
types: cast to arch-specific c_char instead of i8
Seems like CStr::from_ptr is expecting a pointer to c_char, not i8 (as you could get from documentation at [0]). So cast to c_char to solve the problem. [0] https://doc.rust-lang.org/std/ffi/struct.CStr.html#impl-CStr Fixes: #3 Signed-off-by: Andrii Nakryiko <[email protected]>
- Loading branch information