diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h index f1ba1199e67..03d5a3ed950 100644 --- a/Kernel/API/Syscall.h +++ b/Kernel/API/Syscall.h @@ -426,9 +426,9 @@ struct SC_rename_params { }; struct SC_mount_params { - int source_fd; StringArgument target; StringArgument fs_type; + int source_fd; int flags; }; diff --git a/Userland/Libraries/LibC/unistd.cpp b/Userland/Libraries/LibC/unistd.cpp index a9029104241..59ad584ff3d 100644 --- a/Userland/Libraries/LibC/unistd.cpp +++ b/Userland/Libraries/LibC/unistd.cpp @@ -723,9 +723,9 @@ int mount(int source_fd, const char* target, const char* fs_type, int flags) } Syscall::SC_mount_params params { - source_fd, { target, strlen(target) }, { fs_type, strlen(fs_type) }, + source_fd, flags }; int rc = syscall(SC_mount, ¶ms);