From 46cc634986d4f4ebdb8bf408312680049e5823d3 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Thu, 21 May 2015 08:23:45 +0000 Subject: [PATCH] Use the POSIX PATH_MAX macro from limits.h instead of non standard MAXPATHLEN Submitted by: schwarze at OpenBSD --- usr.bin/soelim/soelim.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.bin/soelim/soelim.c b/usr.bin/soelim/soelim.c index aa32baefc04e..587e4061bc97 100644 --- a/usr.bin/soelim/soelim.c +++ b/usr.bin/soelim/soelim.c @@ -27,10 +27,9 @@ #include __FBSDID("$FreeBSD$"); -#include - #include #include +#include #include #define _WITH_GETLINE #include @@ -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)