summaryrefslogtreecommitdiff
path: root/src/ldso/dynlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldso/dynlink.c')
-rw-r--r--src/ldso/dynlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index 3c963e22..59ec5b79 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -318,7 +318,7 @@ static void *map_library(int fd, struct dso *dso)
size_t i;
ssize_t l = read(fd, buf, sizeof buf);
- if (l<sizeof *eh) return 0;
+ if (l<(int)sizeof *eh) return 0;
eh = buf;
phsize = eh->e_phentsize * eh->e_phnum;
if (phsize + sizeof *eh > l) return 0;