Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`attach_to_tmux_session_outside_tmux` uses raw pointers to `c_char` under the hood, but these were specified explicitly as `*const i8` instead of `*const c_str`. As the documentation for `CString::as_ptr` [1] points out, the method really returns a `*const c_str`, and the actual referenced byte type (`i8` or `u8`) is architecture dependent: > The type of the returned pointer is *const c_char, and whether it’s an > alias for *const i8 or *const u8 is platform-specific. Changing the pointer type to `*const c_char` explicitly fixes the build on aarch64, where the underlying pointer type is actually `*const u8` instead of `*const i8`. [1]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.as_ptr
- Loading branch information