summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
authorRubens Brandao <git@rubens.io>2024-06-28 08:25:47 -0300
committerJosh F <negasora@users.noreply.github.com>2024-06-28 09:44:42 -0400
commit3765f2dce4addd02364af6fb2973ff8eb47a7cd9 (patch)
tree87a5d2843ad52d0156f5e913c9ebc018f43752da /rust/src
parent7d6dd01919b3e5bac028bdcecb36f9f120ff197d (diff)
fix missing null ending at string
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/lib.rs b/rust/src/lib.rs
index e24a3f78..a5cb2339 100644
--- a/rust/src/lib.rs
+++ b/rust/src/lib.rs
@@ -197,7 +197,7 @@ const BN_INVALID_EXPR: usize = usize::MAX;
/// The main way to open and load files into Binary Ninja. Make sure you've properly initialized the core before calling this function. See [`crate::headless::init()`]
pub fn load<S: BnStrCompatible>(filename: S) -> Option<rc::Ref<binaryview::BinaryView>> {
let filename = filename.into_bytes_with_nul();
- let options = "";
+ let options = "\x00";
let handle = unsafe {
binaryninjacore_sys::BNLoadFilename(