diff --git a/src/platform/redox/mod.rs b/src/platform/redox/mod.rs index 6b6c8942fc92ab0310ad469b986b415515d2d8fd..4cbdd26d2b9c192b0f1df9424515bf25885ad540 100644 --- a/src/platform/redox/mod.rs +++ b/src/platform/redox/mod.rs @@ -680,7 +680,7 @@ impl Pal for Sys { let timeout_path = unsafe { CString::from_vec_unchecked( - format!("time:{}\0", syscall::CLOCK_MONOTONIC).into_bytes(), + format!("time:{}", syscall::CLOCK_MONOTONIC).into_bytes(), ) }; let timeout_file = match RawFile::open(&timeout_path, fcntl::O_RDWR, 0) {