Browse Source

Oops, extra nul

Jeremy Soller 6 năm trước cách đây
mục cha
commit
13cd7d5a5f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/platform/redox/mod.rs

+ 1 - 1
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) {