You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Use rust::String::c_str to ensure nil termination
This commit is contained in:
@@ -98,9 +98,9 @@ pub mod ffi {
|
||||
fn patch_ro_root(self: &mut MagiskInit);
|
||||
|
||||
// Used in C++
|
||||
unsafe fn setup_tmp(self: &MagiskInit, path: *const c_char);
|
||||
unsafe fn setup_tmp(self: &mut MagiskInit, path: *const c_char);
|
||||
fn collect_devices(self: &MagiskInit);
|
||||
fn mount_preinit_dir(self: &MagiskInit);
|
||||
fn mount_preinit_dir(self: &mut MagiskInit);
|
||||
unsafe fn find_block(self: &MagiskInit, partname: *const c_char) -> u64;
|
||||
unsafe fn patch_fissiond(self: &mut MagiskInit, tmp_path: *const c_char);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user