mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 11:30:47 -05:00
Fix slice copy range for 'want' in dtb.rs
This commit is contained in:
@@ -273,7 +273,7 @@ fn dtb_patch(file: &Utf8CStr) -> LoggedResult<bool> {
|
||||
let w = unsafe {
|
||||
&mut *std::mem::transmute::<&[u8], &UnsafeCell<[u8]>>(w).get()
|
||||
};
|
||||
w[..=4].copy_from_slice(b"want");
|
||||
w[..4].copy_from_slice(b"want");
|
||||
eprintln!("Patch [skip_initramfs] -> [want_initramfs] in dtb.{n:04}");
|
||||
patched = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user