diff options
author | Xiang Xiao <xiaoxiang@xiaomi.com> | 2021-05-19 18:20:38 +0800 |
---|---|---|
committer | Jakub Jelen <jjelen@redhat.com> | 2021-06-10 09:22:32 +0200 |
commit | 672c1f8a3a3ee9b76283583df1e9d1f4fd0a8d17 (patch) | |
tree | 410ad757c7fa2e4ae55fc519196465fdcfc7e281 /src | |
parent | 592d256a0bbfead2dc7eac1494406b9d923a8f23 (diff) | |
download | libssh-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |