aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/soelim.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-05-20 22:57:22 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-05-20 22:57:22 +0000
commit9b8d51e19734842a713236dfe67870a90e2868e2 (patch)
tree3b484379d9941805987d3a3bbea7aa260e3d53e7 /soelim.c
parentea3a546595c994f7d63049af16eecab1660ef4fa (diff)
downloadmandoc-9b8d51e19734842a713236dfe67870a90e2868e2.tar.gz
mandoc-9b8d51e19734842a713236dfe67870a90e2868e2.tar.zst
mandoc-9b8d51e19734842a713236dfe67870a90e2868e2.zip
Use PATH_MAX rather than the non-standard MAXPATHLEN.
Diffstat (limited to 'soelim.c')
-rw-r--r--soelim.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/soelim.c b/soelim.c
index c1fa4adb..10b1b89d 100644
--- a/soelim.c
+++ b/soelim.c
@@ -1,4 +1,4 @@
-/* $Id: soelim.c,v 1.2 2015/05/20 22:22:59 schwarze Exp $ */
+/* $Id: soelim.c,v 1.3 2015/05/20 22:57:22 schwarze Exp $ */
/*
* Copyright (c) 2014 Baptiste Daroussin <bapt@FreeBSD.org>
* All rights reserved.
@@ -25,11 +25,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <sys/param.h>
#include <sys/types.h>
#include <ctype.h>
#include <err.h>
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -57,7 +57,7 @@ static FILE *
soelim_fopen(const char *name)
{
FILE *f;
- char path[MAXPATHLEN];
+ char path[PATH_MAX];
size_t i;
if (strcmp(name, "-") == 0)