fix exec_path()

This commit is contained in:
Andrea Fioraldi 2021-07-06 16:49:17 +02:00
parent 8627b808a0
commit cbbe73864b
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "qemu_libafl_bridge"
version = "0.3.1"
version = "0.3.2"
authors = ["Andrea Fioraldi <andreafioraldi@gmail.com>"]
description = "QEMU and LibAFL bridge lib"
repository = "https://github.com/AFLplusplus/qemu-libafl-bridge/"

View File

@ -100,7 +100,7 @@ impl QemuEmulator {
}
pub fn exec_path(&self) -> &str {
unsafe { from_utf8_unchecked(from_raw_parts(exec_path, strlen(exec_path) + 1)) }
unsafe { from_utf8_unchecked(from_raw_parts(exec_path, strlen(exec_path))) }
}
pub fn new() -> Self {