Use the POSIX PATH_MAX macro from limits.h instead of non standard MAXPATHLEN

Submitted by:	schwarze at OpenBSD
This commit is contained in:
bapt 2015-05-21 08:23:45 +00:00
parent 9bbc11a324
commit 5c514e6097

View File

@ -27,10 +27,9 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <ctype.h>
#include <err.h>
#include <limits.h>
#include <stdbool.h>
#define _WITH_GETLINE
#include <stdio.h>
@ -56,7 +55,7 @@ static FILE *
soelim_fopen(const char *name)
{
FILE *f;
char path[MAXPATHLEN];
char path[PATH_MAX];
size_t i;
if (strcmp(name, "-") == 0)