summaryrefslogtreecommitdiff
path: root/regress/lib/libc/popen/popen.c
diff options
context:
space:
mode:
Diffstat (limited to 'regress/lib/libc/popen/popen.c')
-rw-r--r--regress/lib/libc/popen/popen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libc/popen/popen.c b/regress/lib/libc/popen/popen.c
index 916cb71b037..2e081de5842 100644
--- a/regress/lib/libc/popen/popen.c
+++ b/regress/lib/libc/popen/popen.c
@@ -29,13 +29,13 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#include <sys/param.h>
#include <err.h>
#include <errno.h>
#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
+#include <limits.h>
#include <time.h>
#include <unistd.h>
@@ -47,7 +47,7 @@
int
main(int argc, char **argv)
{
- char *buffer, command[MAXPATHLEN];
+ char *buffer, command[PATH_MAX];
int index, in;
FILE *pipe;