summaryrefslogtreecommitdiff
path: root/Userland/Utilities/shutdown.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/shutdown.cpp')
-rw-r--r--Userland/Utilities/shutdown.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Utilities/shutdown.cpp b/Userland/Utilities/shutdown.cpp
index 2547de06a5..c4cbfdfbcf 100644
--- a/Userland/Utilities/shutdown.cpp
+++ b/Userland/Utilities/shutdown.cpp
@@ -18,8 +18,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
auto file = TRY(Core::File::open("/sys/kernel/power_state"sv, Core::File::OpenMode::Write));
const DeprecatedString file_contents = "2";
- // FIXME: This should write the entire span.
- TRY(file->write_some(file_contents.bytes()));
+ TRY(file->write_until_depleted(file_contents.bytes()));
file->close();
return 0;