libssh: use CURL_PATH_MAX instead of PATH_MAX

Follow-up to facf59c30e

Reported-by: Viktor Szakats
Bug: https://github.com/curl/curl/pull/15285#issuecomment-2416947731
Closes #15309
This commit is contained in:
Daniel Stenberg 2024-10-16 16:07:04 +02:00
parent 7fbcf4b9b7
commit adf2b4fa51
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;
}