From 13cd7d5a5f6916413a93ca3c817a032c82c0ebd6 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jeremy@system76.com> Date: Mon, 17 Sep 2018 10:57:22 -0600 Subject: [PATCH] Oops, extra nul --- src/platform/redox/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/redox/mod.rs b/src/platform/redox/mod.rs index 6b6c8942f..4cbdd26d2 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) { -- GitLab