diff options
Diffstat (limited to 'rust/src/architecture.rs')
| -rw-r--r-- | rust/src/architecture.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs index 878b2c5e..f1cdead0 100644 --- a/rust/src/architecture.rs +++ b/rust/src/architecture.rs @@ -1048,7 +1048,7 @@ macro_rules! cc_func { /// Contains helper methods for all types implementing 'Architecture' pub trait ArchitectureExt: Architecture { fn register_by_name<S: BnStrCompatible>(&self, name: S) -> Option<Self::Register> { - let name = name.as_bytes_with_nul(); + let name = name.into_bytes_with_nul(); match unsafe { BNGetArchitectureRegisterByName(self.as_ref().0, name.as_ref().as_ptr() as *mut _) @@ -1906,7 +1906,7 @@ where false } - let name = name.as_bytes_with_nul(); + let name = name.into_bytes_with_nul(); let uninit_arch = ArchitectureBuilder { arch: unsafe { zeroed() }, |
