diff --git a/src/support/ChangeLog b/src/support/ChangeLog index a36fc7f82b..487246b617 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,7 @@ +2005-01-05 Angus Leeming + + * os_win32.C (external_path, internal_path): s/MAX_PATH/PATH_MAX/. + 2005-01-04 Angus Leeming * os_win32.C (current_root): use _getdrive on Win32. diff --git a/src/support/os_win32.C b/src/support/os_win32.C index 7de1274f9f..b7c48ae1a4 100644 --- a/src/support/os_win32.C +++ b/src/support/os_win32.C @@ -132,7 +132,7 @@ string external_path(string const & p) #if defined(__CYGWIN__) || defined(__CYGWIN32__) // Translate from cygwin path syntax to dos path syntax if (is_absolute_path(p)) { - char dp[MAX_PATH]; + char dp[PATH_MAX]; cygwin_conv_to_full_win32_path(p.c_str(), dp); dos_path = !dp ? "" : dp; } @@ -160,7 +160,7 @@ string external_path(string const & p) string internal_path(string const & p) { #if defined(__CYGWIN__) || defined(__CYGWIN32__) - char posix_path[MAX_PATH]; + char posix_path[PATH_MAX]; posix_path[0] = '\0'; cygwin_conv_to_posix_path(p.c_str(), posix_path); return posix_path;