summaryrefslogtreecommitdiff
path: root/rust/src/calling_convention.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/calling_convention.rs')
-rw-r--r--rust/src/calling_convention.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/calling_convention.rs b/rust/src/calling_convention.rs
index 2fb282e0..6f2e9a1c 100644
--- a/rust/src/calling_convention.rs
+++ b/rust/src/calling_convention.rs
@@ -455,8 +455,8 @@ impl CoreCallingConvention {
})
}
- pub fn name(&self) -> BnString {
- unsafe { BnString::from_raw(BNGetCallingConventionName(self.handle)) }
+ pub fn name(&self) -> String {
+ unsafe { BnString::into_string(BNGetCallingConventionName(self.handle)) }
}
pub fn variables_for_parameters(