summaryrefslogtreecommitdiff
path: root/Userland/Utilities/uniq.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/uniq.cpp')
-rw-r--r--Userland/Utilities/uniq.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Utilities/uniq.cpp b/Userland/Utilities/uniq.cpp
index d4826a3342..7253c5924d 100644
--- a/Userland/Utilities/uniq.cpp
+++ b/Userland/Utilities/uniq.cpp
@@ -17,10 +17,11 @@ static ErrorOr<void> write_line_content(StringView line, size_t count, bool dupl
if (duplicates_only && count <= 1)
return {};
+ // FIXME: This should write the entire span.
if (print_count)
- TRY(outfile.write(DeprecatedString::formatted("{} {}\n", count, line).bytes()));
+ TRY(outfile.write_some(DeprecatedString::formatted("{} {}\n", count, line).bytes()));
else
- TRY(outfile.write(DeprecatedString::formatted("{}\n", line).bytes()));
+ TRY(outfile.write_some(DeprecatedString::formatted("{}\n", line).bytes()));
return {};
}