diff --git a/Userland/Libraries/LibCore/System.cpp b/Userland/Libraries/LibCore/System.cpp index 465a936309..aa8d2ac075 100644 --- a/Userland/Libraries/LibCore/System.cpp +++ b/Userland/Libraries/LibCore/System.cpp @@ -550,7 +550,7 @@ ErrorOr utime(StringView path, Optional maybe_buf) HANDLE_SYSCALL_RETURN_VALUE("utime"sv, rc, {}); #else String path_string = path; - if (::utime(path.characters(), buf) < 0) + if (::utime(path_string.characters(), buf) < 0) return Error::from_syscall("utime"sv, -errno); return {}; #endif