diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-05-11 13:19:29 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-11 16:33:18 +0200 |
commit | 6a21bbb5b240cc2de69c05684e0e89781b8268a8 (patch) | |
tree | f99f3754f3da45454e06ff7a9dfea1a9222b09fd /Userland/Utilities | |
parent | 23dd16febeef232a9bb5fd6637a364987b822926 (diff) | |
download | serenity-6a21bbb5b240cc2de69c05684e0e89781b8268a8.zip |
errno: Remove usage of DeprecatedString
Diffstat (limited to 'Userland/Utilities')
-rw-r--r-- | Userland/Utilities/errno.cpp | 3 |
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); } |