Skip to content

Commit 16d82dc

Browse files
authored
fixup! mingw: support long paths (#5550)
When rebasing c8b6c1d (mingw: support long paths, 2015-07-28) on top of 391bcea (compat/mingw: support POSIX semantics for atomic renames, 2024-10-27) a newly introduced MAX_PATH buffer was not increased to MAX_LONG_PATH. This fixes #5476
2 parents 4ca71ba + 2cdc2d6 commit 16d82dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: compat/mingw.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2857,9 +2857,9 @@ int mingw_rename(const char *pold, const char *pnew)
28572857
* flex array so that the structure has to be allocated on
28582858
* the heap. As we declare this structure ourselves though
28592859
* we can avoid the allocation and define FileName to have
2860-
* MAX_PATH bytes.
2860+
* MAX_LONG_PATH bytes.
28612861
*/
2862-
WCHAR FileName[MAX_PATH];
2862+
WCHAR FileName[MAX_LONG_PATH];
28632863
} rename_info = { 0 };
28642864
HANDLE old_handle = INVALID_HANDLE_VALUE;
28652865
BOOL success;

0 commit comments

Comments
 (0)