diff options
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r-- | elf/dl-load.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index e67ade2d59..ad981bc238 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -563,7 +563,7 @@ _dl_map_object_from_fd (char *name, int fd, char *realname, /* Read the header directly. */ readbuf = alloca (_dl_pagesize); readlength = __libc_read (fd, readbuf, _dl_pagesize); - if (readlength < sizeof(*header)) + if (readlength < (ssize_t) sizeof(*header)) lose (errno, "cannot read file data"); header = (void *) readbuf; |