mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:28:11 +00:00
Kernel: Convert hostname to KString
This commit is contained in:
parent
6402840670
commit
50d6a6a186
4 changed files with 8 additions and 8 deletions
|
@ -24,7 +24,7 @@ ErrorOr<FlatPtr> Process::sys$uname(Userspace<utsname*> user_buf)
|
|||
#endif
|
||||
|
||||
hostname().with_shared([&](const auto& name) {
|
||||
memcpy(buf.nodename, name.characters(), name.length() + 1);
|
||||
memcpy(buf.nodename, name->characters(), name->length() + 1);
|
||||
});
|
||||
|
||||
TRY(copy_to_user(user_buf, &buf));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue