1
Fork 0
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:
Idan Horowitz 2022-01-13 00:27:33 +02:00 committed by Brian Gianforcaro
parent 6402840670
commit 50d6a6a186
4 changed files with 8 additions and 8 deletions

View file

@ -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));