diff options
author | Sverker Eriksson <[email protected]> | 2014-03-20 15:00:09 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2014-03-24 21:09:51 +0100 |
commit | 921c6c64cd8168956f0c5f09c20d1fa0a4753edf (patch) | |
tree | 4386c869b35d219e0e44e2862000fcc47d2015d6 /erts/emulator/drivers | |
parent | 09635c1b75a3659f05704dcebe5ed813f75b5ceb (diff) | |
download | otp-921c6c64cd8168956f0c5f09c20d1fa0a4753edf.tar.gz otp-921c6c64cd8168956f0c5f09c20d1fa0a4753edf.tar.bz2 otp-921c6c64cd8168956f0c5f09c20d1fa0a4753edf.zip |
erts: Fix file:list_dir for windows paths 258 or 259 chars long
Appending wildcard "\*" made the path too long (>= 260 chars).
Diffstat (limited to 'erts/emulator/drivers')
-rw-r--r-- | erts/emulator/drivers/win32/win_efile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/drivers/win32/win_efile.c b/erts/emulator/drivers/win32/win_efile.c index 9621fcca45..fb746f1f54 100644 --- a/erts/emulator/drivers/win32/win_efile.c +++ b/erts/emulator/drivers/win32/win_efile.c @@ -943,7 +943,7 @@ static int do_readdir(Efile_call_state* state, int length; WCHAR* s; - ensure_wpath(state, &wname); + ensure_wpath_max(state, &wname, MAX_PATH-2); length = wcslen(wname); wildcard = wpath_tmp_alloc(state, length+3); |