diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-06-05 02:00:26 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-06-05 02:00:26 +0000 |
commit | b89434f21ae046433285c9cbccd06a7e60481404 (patch) | |
tree | f9d6f3fb89af641748aca368db8213fcb4875386 /mansearch.h | |
parent | 38f6d7addec36d20d9119077b886c125c21451af (diff) | |
download | mandoc-b89434f21ae046433285c9cbccd06a7e60481404.tar.gz |
Some places used PATH_MAX from <limits.h>, some MAXPATHLEN from <sys/param.h>.
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.
Diffstat (limited to 'mansearch.h')
-rw-r--r-- | mansearch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mansearch.h b/mansearch.h index 10584c63..a72d5901 100644 --- a/mansearch.h +++ b/mansearch.h @@ -61,7 +61,7 @@ __BEGIN_DECLS struct manpage { - char file[MAXPATHLEN]; /* prefixed by manpath */ + char file[PATH_MAX]; /* prefixed by manpath */ char *desc; /* description of manpage */ int form; /* 0 == catpage */ }; |