From 1c009f20db131892766d55e021aea8e1c59a4a82 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 15 Apr 2024 00:59:21 -0400 Subject: Increase path size to squelch compiler warnings --- src/deliverable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/deliverable.c b/src/deliverable.c index aacd3d1..aaa496d 100644 --- a/src/deliverable.c +++ b/src/deliverable.c @@ -1338,7 +1338,7 @@ int delivery_index_wheel_artifacts(struct Delivery *ctx) { } FILE *bottom_fp; - char bottom_index[PATH_MAX]; + char bottom_index[PATH_MAX * 2]; memset(bottom_index, 0, sizeof(bottom_index)); sprintf(bottom_index, "%s/%s/index.html", ctx->storage.wheel_artifact_dir, rec->d_name); bottom_fp = fopen(bottom_index, "w+"); @@ -1349,7 +1349,7 @@ int delivery_index_wheel_artifacts(struct Delivery *ctx) { // Add record to top level index fprintf(top_fp, "%s
\n", rec->d_name, rec->d_name); - char dpath[PATH_MAX]; + char dpath[PATH_MAX * 2]; memset(dpath, 0, sizeof(dpath)); sprintf(dpath, "%s/%s", ctx->storage.wheel_artifact_dir, rec->d_name); struct StrList *packages = listdir(dpath); -- cgit