summaryrefslogtreecommitdiffstats
path: root/library/std/src/sys/common/small_c_string.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/sys/common/small_c_string.rs')
-rw-r--r--library/std/src/sys/common/small_c_string.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/common/small_c_string.rs b/library/std/src/sys/common/small_c_string.rs
index 01acd5191..963d17a47 100644
--- a/library/std/src/sys/common/small_c_string.rs
+++ b/library/std/src/sys/common/small_c_string.rs
@@ -19,7 +19,7 @@ pub fn run_path_with_cstr<T, F>(path: &Path, f: F) -> io::Result<T>
where
F: FnOnce(&CStr) -> io::Result<T>,
{
- run_with_cstr(path.as_os_str().bytes(), f)
+ run_with_cstr(path.as_os_str().as_os_str_bytes(), f)
}
#[inline]