diff --git a/lib/emscripten/src/syscalls/mod.rs b/lib/emscripten/src/syscalls/mod.rs index 72b04884f..5654a1299 100644 --- a/lib/emscripten/src/syscalls/mod.rs +++ b/lib/emscripten/src/syscalls/mod.rs @@ -129,8 +129,8 @@ pub fn ___syscall38(ctx: &mut Ctx, _which: c_int, mut varargs: VarArgs) -> i32 { let result = unsafe { rename(old_path, new_path) }; debug!( "=> old_path: {}, new_path: {}, result: {}", - std::ffi::CStr::from_ptr(old_path).to_str().unwrap(), - std::ffi::CStr::from_ptr(new_path).to_str().unwrap(), + unsafe { std::ffi::CStr::from_ptr(old_path).to_str().unwrap() }, + unsafe { std::ffi::CStr::from_ptr(new_path).to_str().unwrap() }, result ); result