Skip to content

Commit 3765f2d

Browse files
rbrannegasora
authored andcommitted
fix missing null ending at string
1 parent 7d6dd01 commit 3765f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const BN_INVALID_EXPR: usize = usize::MAX;
197197
/// 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()`]
198198
pub fn load<S: BnStrCompatible>(filename: S) -> Option<rc::Ref<binaryview::BinaryView>> {
199199
let filename = filename.into_bytes_with_nul();
200-
let options = "";
200+
let options = "\x00";
201201

202202
let handle = unsafe {
203203
binaryninjacore_sys::BNLoadFilename(

0 commit comments

Comments
 (0)