summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libebl/eblobjnote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libebl/eblobjnote.c b/libebl/eblobjnote.c
index 5a7c5c62..1ba5d8b3 100644
--- a/libebl/eblobjnote.c
+++ b/libebl/eblobjnote.c
@@ -155,8 +155,8 @@ ebl_object_note (Ebl *ebl, uint32_t namesz, const char *name, uint32_t type,
} addrs;
size_t addr_size = gelf_fsize (ebl->elf, ELF_T_ADDR,
- 2, EV_CURRENT);
- if (descsz != addr_size)
+ 1, EV_CURRENT);
+ if (descsz != addr_size * 2)
printf ("<unknown data>\n");
else
{