diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-15 00:59:21 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-15 01:03:37 -0400 |
commit | 1c009f20db131892766d55e021aea8e1c59a4a82 (patch) | |
tree | 552ca28ad316d33103b5408a9c71e7d5c8f89308 | |
parent | 79b10a0cfb22a2777d9e1a81689aadd90c0d5930 (diff) | |
download | stasis-1c009f20db131892766d55e021aea8e1c59a4a82.tar.gz |
Increase path size to squelch compiler warnings
-rw-r--r-- | src/deliverable.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, "<a href=\"%s/\">%s</a><br/>\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); |