diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2001-05-26 19:36:49 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2001-05-26 19:36:49 +0000 |
commit | 2b26f942d39f9750a66853a1b9ebdd68f368d6fd (patch) | |
tree | 06145fd1b4fcb38e1c50e28431c9130b0977289c | |
parent | fac189508a0676959ccc0278e1b45d3743b85f85 (diff) |
Notes
-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 34981e94ac3a..db257883c9fa 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 2db091db3f25..4e2ddc7e3141 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) { |