aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-06-26 15:16:09 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-06-26 15:16:09 -0400
commitce10a7cdbe237fa689fb07670691c91fd081e705 (patch)
tree4feb6cfc45080f8b81db4bf989374c90fd331eb1
parent8806fd885aa177083c8329eacc13c5cb11204420 (diff)
downloadstasis-ce10a7cdbe237fa689fb07670691c91fd081e705.tar.gz
cmd should be at least PATH_MAX in size.
* Magic number caused failure to install conda with a long installation path
-rw-r--r--src/delivery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/delivery.c b/src/delivery.c
index 014f2b5..8828266 100644
--- a/src/delivery.c
+++ b/src/delivery.c
@@ -1419,7 +1419,7 @@ void delivery_install_conda(char *install_script, char *conda_install_dir) {
// Proceed with the installation
// -b = batch mode (non-interactive)
- char cmd[255] = {0};
+ char cmd[PATH_MAX] = {0};
snprintf(cmd, sizeof(cmd) - 1, "%s %s -b -p %s",
find_program("bash"),
install_script,