diff options
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Syscalls/debug.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/Syscalls/debug.cpp b/Kernel/Syscalls/debug.cpp index 5f34084266..30e0312efd 100644 --- a/Kernel/Syscalls/debug.cpp +++ b/Kernel/Syscalls/debug.cpp @@ -42,8 +42,9 @@ KResultOr<FlatPtr> Process::sys$dbgputstr(Userspace<const char*> characters, siz auto result = try_copy_kstring_from_user(characters, size); if (result.is_error()) return result.error(); - dbgputstr(result.value()->characters(), size); - return size; + auto string = result.release_value(); + dbgputstr(string->view()); + return string->length(); } } |