From adf2b4fa51a3a873f4f8922617695c4072efa4a1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 16 Oct 2024 16:07:04 +0200 Subject: [PATCH] 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 --- lib/vssh/libssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }