mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +00:00
Kernel: Remove char* versions of path argument / kstring copy methods
The only two paths for copying strings in the kernel should be going through the existing Userspace<char const*>, or StringArgument methods. Lets enforce this by removing the option for using the raw cstring APIs that were previously available.
This commit is contained in:
parent
5121e58d4a
commit
40a942d28b
6 changed files with 14 additions and 21 deletions
|
@ -58,7 +58,7 @@ KResultOr<FlatPtr> Process::sys$inode_watcher_add_watch(Userspace<const Syscall:
|
|||
return EBADF;
|
||||
auto inode_watcher = description->inode_watcher();
|
||||
|
||||
auto path = get_syscall_path_argument(params.user_path.characters, params.user_path.length);
|
||||
auto path = get_syscall_path_argument(params.user_path);
|
||||
if (path.is_error())
|
||||
return path.error();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue