summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/section.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/section.rs b/rust/src/section.rs
index 53afffb3..a86c54e2 100644
--- a/rust/src/section.rs
+++ b/rust/src/section.rs
@@ -89,8 +89,8 @@ impl Section {
SectionBuilder::new(name, range)
}
- pub fn name(&self) -> String {
- unsafe { BnString::into_string(BNSectionGetName(self.handle)) }
+ pub fn name(&self) -> BnString {
+ unsafe { BnString::from_raw(BNSectionGetName(self.handle)) }
}
pub fn section_type(&self) -> String {