1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

readelf: Remove an unnecessary String::format()

This commit is contained in:
Andreas Kling 2021-04-21 22:53:05 +02:00
parent 09cb8aded6
commit 46209ee9d0

View file

@ -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 {