summaryrefslogtreecommitdiff
path: root/libexec/ld.so/ldd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-01-16 16:18:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-01-16 16:18:08 +0000
commitfea0521ff8ac490a72112e6006d4b0cd874e2caf (patch)
tree2800093cbf05fd89b7b10af19f777934daa8d740 /libexec/ld.so/ldd
parente7cdb4cd2a91c8b67b4be2790814c09ebf9c79b3 (diff)
<sys/param.h> to <limits.h> conversion. Verified binaries
ok millert, thanks to doug for process advice
Diffstat (limited to 'libexec/ld.so/ldd')
-rw-r--r--libexec/ld.so/ldd/ldd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.so/ldd/ldd.c b/libexec/ld.so/ldd/ldd.c
index f68237160b5..127961be189 100644
--- a/libexec/ld.so/ldd/ldd.c
+++ b/libexec/ld.so/ldd/ldd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldd.c,v 1.17 2014/10/18 03:16:19 doug Exp $ */
+/* $OpenBSD: ldd.c,v 1.18 2015/01/16 16:18:07 deraadt Exp $ */
/*
* Copyright (c) 2001 Artur Grabowski <art@openbsd.org>
* All rights reserved.
@@ -31,12 +31,12 @@
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
+#include <limits.h>
#include <dlfcn.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/wait.h>
-#include <sys/param.h>
int usage(void);
int doit(char *);
@@ -95,7 +95,7 @@ doit(char *name)
Elf_Ehdr ehdr;
Elf_Phdr *phdr;
int fd, i, size, status, interp=0;
- char buf[MAXPATHLEN];
+ char buf[PATH_MAX];
void * dlhandle;
if ((fd = open(name, O_RDONLY)) < 0) {