Use the POSIX PATH_MAX macro from limits.h instead of non standard MAXPATHLEN
Submitted by: schwarze at OpenBSD
This commit is contained in:
parent
9bbc11a324
commit
5c514e6097
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user