Explorar o código

LibCore: Fix Lagom build of Core::System::utime()

Andreas Kling %!s(int64=3) %!d(string=hai) anos
pai
achega
5911d1c880
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Userland/Libraries/LibCore/System.cpp

+ 1 - 1
Userland/Libraries/LibCore/System.cpp

@@ -550,7 +550,7 @@ ErrorOr<void> utime(StringView path, Optional<struct utimbuf> 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