summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libfetch/common.c')
-rw-r--r--lib/libfetch/common.c2
1 files changed, 1 insertions, 1 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)++;
OpenPOWER on IntegriCloud