mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 19:40:47 -05: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