From ce10a7cdbe237fa689fb07670691c91fd081e705 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 26 Jun 2024 15:16:09 -0400 Subject: cmd should be at least PATH_MAX in size. * Magic number caused failure to install conda with a long installation path --- src/delivery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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, -- cgit