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:
parent
7fbcf4b9b7
commit
adf2b4fa51
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user