MAXPATHLEN -> PATH_MAX

This commit is contained in:
Dag-Erling Smørgrav 2001-05-26 19:36:49 +00:00
parent fac189508a
commit 2b26f942d3
2 changed files with 2 additions and 2 deletions

View File

@ -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)++;

View File

@ -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) {