diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-05-20 22:57:22 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-05-20 22:57:22 +0000 |
commit | 9b8d51e19734842a713236dfe67870a90e2868e2 (patch) | |
tree | 3b484379d9941805987d3a3bbea7aa260e3d53e7 | |
parent | ea3a546595c994f7d63049af16eecab1660ef4fa (diff) | |
download | mandoc-9b8d51e19734842a713236dfe67870a90e2868e2.tar.gz mandoc-9b8d51e19734842a713236dfe67870a90e2868e2.tar.zst mandoc-9b8d51e19734842a713236dfe67870a90e2868e2.zip |
Use PATH_MAX rather than the non-standard MAXPATHLEN.
-rw-r--r-- | soelim.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |