summaryrefslogtreecommitdiff
path: root/libs/libcurl/src/vssh/ssh.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libcurl/src/vssh/ssh.h')
-rw-r--r--libs/libcurl/src/vssh/ssh.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/libcurl/src/vssh/ssh.h b/libs/libcurl/src/vssh/ssh.h
index 272e47ce6c..192c1d7970 100644
--- a/libs/libcurl/src/vssh/ssh.h
+++ b/libs/libcurl/src/vssh/ssh.h
@@ -39,6 +39,8 @@
#include <wolfssh/wolfsftp.h>
#endif
+#include "curl_path.h"
+
/****************************************************************************
* SSH unique setup
***************************************************************************/
@@ -109,6 +111,8 @@ typedef enum {
SSH_LAST /* never used */
} sshstate;
+#define CURL_PATH_MAX 1024
+
/* this struct is used in the HandleData struct which is part of the
Curl_easy, which means this is used on a per-easy handle basis.
Everything that is strictly related to a connection is banned from this
@@ -118,8 +122,8 @@ struct SSHPROTO {
#ifdef USE_LIBSSH2
struct dynbuf readdir_link;
struct dynbuf readdir;
- char *readdir_filename;
- char *readdir_longentry;
+ char readdir_filename[CURL_PATH_MAX + 1];
+ char readdir_longentry[CURL_PATH_MAX + 1];
LIBSSH2_SFTP_ATTRIBUTES quote_attrs; /* used by the SFTP_QUOTE state */