From 6a21bbb5b240cc2de69c05684e0e89781b8268a8 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 11 May 2023 13:19:29 +0100 Subject: [PATCH] errno: Remove usage of DeprecatedString --- Userland/Utilities/errno.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 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); }