]> git.cameronkatri.com Git - mandoc.git/commitdiff
Use PATH_MAX rather than the non-standard MAXPATHLEN.
authorIngo Schwarze <schwarze@openbsd.org>
Wed, 20 May 2015 22:57:22 +0000 (22:57 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Wed, 20 May 2015 22:57:22 +0000 (22:57 +0000)
soelim.c

index c1fa4adb6e744c58be2a7aed21f267962c14f82e..10b1b89deab7cc99c39560cfd248a2aeed4ab820 100644 (file)
--- 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.
  * 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)