From 3765f2dce4addd02364af6fb2973ff8eb47a7cd9 Mon Sep 17 00:00:00 2001 From: Rubens Brandao Date: Fri, 28 Jun 2024 08:25:47 -0300 Subject: fix missing null ending at string --- rust/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src') 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(filename: S) -> Option> { let filename = filename.into_bytes_with_nul(); - let options = ""; + let options = "\x00"; let handle = unsafe { binaryninjacore_sys::BNLoadFilename( -- cgit v1.3.1