Browse Source

readelf: Remove an unnecessary String::format()

Andreas Kling 4 years ago
parent
commit
46209ee9d0
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Userland/Utilities/readelf.cpp

+ 1 - 2
Userland/Utilities/readelf.cpp

@@ -492,9 +492,8 @@ int main(int argc, char** argv)
     if (display_elf_header) {
         printf("ELF header:\n");
 
-        String magic = String::format("%s", header.e_ident);
         printf("  Magic:                             ");
-        for (char i : magic) {
+        for (char i : StringView { header.e_ident, sizeof(header.e_ident) }) {
             if (isprint(i)) {
                 printf("%c ", i);
             } else {