aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXiang Xiao <xiaoxiang@xiaomi.com>2021-05-19 18:20:38 +0800
committerJakub Jelen <jjelen@redhat.com>2021-06-10 09:22:32 +0200
commit672c1f8a3a3ee9b76283583df1e9d1f4fd0a8d17 (patch)
tree410ad757c7fa2e4ae55fc519196465fdcfc7e281 /src
parent592d256a0bbfead2dc7eac1494406b9d923a8f23 (diff)
downloadlibssh-672c1f8a3a3ee9b76283583df1e9d1f4fd0a8d17.tar.gz
libssh-672c1f8a3a3ee9b76283583df1e9d1f4fd0a8d17.tar.xz
libssh-672c1f8a3a3ee9b76283583df1e9d1f4fd0a8d17.zip
windows: Define PATH_MAX to MAX_PATH
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Change-Id: Ib3358ecb029d93c263d3cb39da25e82a772ae2c7
Diffstat (limited to 'src')
-rw-r--r--src/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.c b/src/misc.c
index 167beaf1..dff76519 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -105,7 +105,7 @@
#ifdef _WIN32
char *ssh_get_user_home_dir(void) {
- char tmp[MAX_PATH] = {0};
+ char tmp[PATH_MAX] = {0};
char *szPath = NULL;
if (SHGetSpecialFolderPathA(NULL, tmp, CSIDL_PROFILE, TRUE)) {