diff options
author | des <des@FreeBSD.org> | 2001-05-26 19:36:49 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-05-26 19:36:49 +0000 |
commit | 4edf66ad45433dfe5f2ebdca625183c9481390f2 (patch) | |
tree | 316d13dfb3e8a3dce66efab4b55fcee0f4f866a3 /lib | |
parent | be44ddbe41c499f1c344859b8158dc7190505e17 (diff) | |
download | FreeBSD-src-4edf66ad45433dfe5f2ebdca625183c9481390f2.zip FreeBSD-src-4edf66ad45433dfe5f2ebdca625183c9481390f2.tar.gz |
MAXPATHLEN -> PATH_MAX
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libfetch/common.c | 2 | ||||
-rw-r--r-- | lib/libfetch/file.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index 34981e9..db25788 100644 --- a/lib/libfetch/common.c +++ b/lib/libfetch/common.c @@ -381,7 +381,7 @@ _fetch_add_entry(struct url_ent **p, int *size, int *len, } tmp = *p + *len; - snprintf(tmp->name, MAXPATHLEN, "%s", name); + snprintf(tmp->name, PATH_MAX, "%s", name); bcopy(stat, &tmp->stat, sizeof *stat); (*len)++; diff --git a/lib/libfetch/file.c b/lib/libfetch/file.c index 2db091d..4e2ddc7 100644 --- a/lib/libfetch/file.c +++ b/lib/libfetch/file.c @@ -117,7 +117,7 @@ fetchListFile(struct url *u, const char *flags) struct url_stat us; struct url_ent *ue; int size, len; - char fn[MAXPATHLEN], *p; + char fn[PATH_MAX], *p; int l; if ((dir = opendir(u->doc)) == NULL) { |