svn commit: r283196 - head/usr.bin/soelim
Baptiste Daroussin
bapt at FreeBSD.org
Thu May 21 08:23:46 UTC 2015
Author: bapt
Date: Thu May 21 08:23:45 2015
New Revision: 283196
URL: https://svnweb.freebsd.org/changeset/base/283196
Log:
Use the POSIX PATH_MAX macro from limits.h instead of non standard MAXPATHLEN
Submitted by: schwarze at OpenBSD
Modified:
head/usr.bin/soelim/soelim.c
Modified: head/usr.bin/soelim/soelim.c
==============================================================================
--- head/usr.bin/soelim/soelim.c Thu May 21 08:20:42 2015 (r283195)
+++ head/usr.bin/soelim/soelim.c Thu May 21 08:23:45 2015 (r283196)
@@ -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)
More information about the svn-src-all
mailing list