summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-12-07 14:57:40 +0000
committerderaadt <deraadt@openbsd.org>1996-12-07 14:57:40 +0000
commit530b5054d178a2465b3e855d515cb63063e50e37 (patch)
treefd2d0ad3b17084febe2f55c9e3fdfb515219e262
parentmem leak, short malloc; netbsd pr#3000, minoura@kw.netlaputa.or.jp (diff)
downloadwireguard-openbsd-530b5054d178a2465b3e855d515cb63063e50e37.tar.xz
wireguard-openbsd-530b5054d178a2465b3e855d515cb63063e50e37.zip
avoid __LDPGSZ
-rw-r--r--gnu/usr.bin/ld/ldd/ldd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/ld/ldd/ldd.c b/gnu/usr.bin/ld/ldd/ldd.c
index 2523addf80e..88756fd1958 100644
--- a/gnu/usr.bin/ld/ldd/ldd.c
+++ b/gnu/usr.bin/ld/ldd/ldd.c
@@ -107,7 +107,7 @@ char *argv[];
if (read(fd, &hdr, sizeof hdr) != sizeof hdr
|| (N_GETFLAG(hdr) & EX_DPMASK) != EX_DYNAMIC
#if 1 /* Compatibility */
- || hdr.a_entry < __LDPGSZ
+ || hdr.a_entry < N_PAGSIZ(hdr)
#endif
) {