Fix slice copy range for 'want' in dtb.rs

This commit is contained in:
Bela Schaum
2026-08-25 21:09:16 +00:00
committed by John Wu
parent 15062974a3
commit 3c411abc34
+1 -1
View File
@@ -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;
}