diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-15 19:00:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-15 19:00:44 +0000 |
commit | d551628883232c046b4fa89979d0ecc205492ec8 (patch) | |
tree | 03c627f8c1e15bee9c94ec897b4653f774bd5ce5 /lib/libc/gen | |
parent | 1fecb659a2782f397a1cffe2ab1dd46faa9ad3a6 (diff) |
pretty
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/nlist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/nlist.c b/lib/libc/gen/nlist.c index be0e61a8ddc..1fe0801b270 100644 --- a/lib/libc/gen/nlist.c +++ b/lib/libc/gen/nlist.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: nlist.c,v 1.48 2004/05/18 02:05:52 jfb Exp $"; +static char rcsid[] = "$OpenBSD: nlist.c,v 1.49 2004/09/15 19:00:43 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -336,6 +336,7 @@ __elf_fdnlist(int fd, struct nlist *list) usemalloc = 1; if ((shdr = malloc(shdr_size)) == NULL) return (-1); + if (pread(fd, shdr, shdr_size, ehdr.e_shoff) != shdr_size) { free(shdr); return (-1); |