From: Daniel Stenberg Date: Wed, 16 Oct 2024 14:07:04 +0000 (+0200) Subject: libssh: use CURL_PATH_MAX instead of PATH_MAX X-Git-Tag: curl-8_11_0~139 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=adf2b4fa51a3a873f4f8922617695c4072efa4a1;p=thirdparty%2Fcurl.git libssh: use CURL_PATH_MAX instead of PATH_MAX Follow-up to facf59c30e9a6a10c4 Reported-by: Viktor Szakats Bug: https://github.com/curl/curl/pull/15285#issuecomment-2416947731 Closes #15309 --- diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index 2dbe861c37..b8319ff94b 100644 --- a/lib/vssh/libssh.c +++ b/lib/vssh/libssh.c @@ -2146,7 +2146,7 @@ static CURLcode myssh_setup_connection(struct Curl_easy *data, data->req.p.ssh = ssh = calloc(1, sizeof(struct SSHPROTO)); if(!ssh) return CURLE_OUT_OF_MEMORY; - Curl_dyn_init(&sshc->readdir_buf, PATH_MAX * 2); + Curl_dyn_init(&sshc->readdir_buf, CURL_PATH_MAX * 2); return CURLE_OK; }