summaryrefslogtreecommitdiff
path: root/lib/elf.c
diff options
context:
space:
mode:
authorAlasdair Armstrong2019-02-04 21:30:33 +0000
committerAlasdair Armstrong2019-02-04 21:30:33 +0000
commit84d30fd9dee6dd4f22a58b55f93ca39d30266c4f (patch)
treeb4c8e4129d761a45674da9d23a7eaa58e8ad8574 /lib/elf.c
parent8347e409564c19963a55e88358eeb88dab6b865c (diff)
Fix some warnings
Diffstat (limited to 'lib/elf.c')
-rw-r--r--lib/elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elf.c b/lib/elf.c
index 888169f5..397c8f3f 100644
--- a/lib/elf.c
+++ b/lib/elf.c
@@ -468,7 +468,7 @@ int lookupSymbol(const char *buffer, const int total_file_size, const char *symn
Elf64_Ehdr *ehdr = (Elf64_Ehdr*) &buffer[0];
if (total_file_size < rdOff64(le, ehdr->e_shoff)
+ rdHalf64(le, ehdr->e_shnum)*sizeof(Elf64_Shdr)) {
- fprintf(stderr, "File too small for %d sections from offset %llu\n",
+ fprintf(stderr, "File too small for %d sections from offset %" PRIu64 "\n",
rdHalf64(le, ehdr->e_shnum), rdOff64(le, ehdr->e_shoff));
exit(EXIT_FAILURE);
}