From 8400486b39e9f57a03d2efe49cf8eab233476669 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 5 Jun 2013 02:00:26 +0000 Subject: Some places used PATH_MAX from , some MAXPATHLEN from . Consistently use the PATH_MAX since it is specified by POSIX, while MAXPATHLEN is not. In preparation for using this at a few more places. --- manpath.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'manpath.c') diff --git a/manpath.c b/manpath.c index 888c8db5..90089323 100644 --- a/manpath.c +++ b/manpath.c @@ -1,4 +1,4 @@ -/* $Id: manpath.c,v 1.10 2013/05/29 22:48:10 schwarze Exp $ */ +/* $Id: manpath.c,v 1.11 2013/06/05 02:00:26 schwarze Exp $ */ /* * Copyright (c) 2011 Ingo Schwarze * Copyright (c) 2011 Kristaps Dzonsons @@ -19,10 +19,6 @@ #include "config.h" #endif -#ifdef USE_MANPATH -#include -#endif - #include #include #include @@ -44,7 +40,7 @@ manpath_parse(struct manpaths *dirs, const char *file, char *defp, char *auxp) { #ifdef USE_MANPATH - char cmd[(MAXPATHLEN * 3) + 20]; + char cmd[(PATH_MAX * 3) + 20]; FILE *stream; char *buf; size_t sz, bsz; -- cgit v1.2.3