Skip to content

Commit 470ce09

Browse files
committed
task five: 100-elf_header.c - status: edit - desc: fix bugs.
1 parent c9f2669 commit 470ce09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

0x15-file_io/100-elf_header.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ void printClass(unsigned char *e_ident)
133133
{ELFCLASS64, "ELF64"},
134134
};
135135
int index = 0;
136-
int len = sizeof(classes) / sizeof(classes);
136+
int len = sizeof(classes) / sizeof(*classes);
137137

138138
while (index < len)
139139
{

0 commit comments

Comments
 (0)