]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh: use CURL_PATH_MAX instead of PATH_MAX
authorDaniel Stenberg <daniel@haxx.se>
Wed, 16 Oct 2024 14:07:04 +0000 (16:07 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 16 Oct 2024 14:27:59 +0000 (16:27 +0200)
Follow-up to facf59c30e9a6a10c4

Reported-by: Viktor Szakats
Bug: https://github.com/curl/curl/pull/15285#issuecomment-2416947731
Closes #15309

lib/vssh/libssh.c

index 2dbe861c37c9590ddb5e6dc0d0433b7edec323b3..b8319ff94b5df6e81fcf35b9406af4913726b320 100644 (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;
 }