summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}