summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-05-11 13:19:29 +0100
committerAndreas Kling <kling@serenityos.org>2023-05-11 16:33:18 +0200
commit6a21bbb5b240cc2de69c05684e0e89781b8268a8 (patch)
treef99f3754f3da45454e06ff7a9dfea1a9222b09fd /Userland/Utilities
parent23dd16febeef232a9bb5fd6637a364987b822926 (diff)
downloadserenity-6a21bbb5b240cc2de69c05684e0e89781b8268a8.zip
errno: Remove usage of DeprecatedString
Diffstat (limited to 'Userland/Utilities')
-rw-r--r--Userland/Utilities/errno.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Utilities/errno.cpp b/Userland/Utilities/errno.cpp
index b9116614c0..92d3041709 100644
--- a/Userland/Utilities/errno.cpp
+++ b/Userland/Utilities/errno.cpp
@@ -47,7 +47,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
if (search) {
for (int i = 0; i < sys_nerr; i++) {
- auto error = DeprecatedString::formatted("{}", strerror(i));
+ auto error_string = strerror(i);
+ StringView error { error_string, strlen(error_string) };
if (error.contains(keyword, CaseSensitivity::CaseInsensitive))
output_errno_description(i, error);
}