aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/win32/win_efile.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-03-20 15:00:09 +0100
committerSverker Eriksson <[email protected]>2014-03-24 21:09:51 +0100
commit921c6c64cd8168956f0c5f09c20d1fa0a4753edf (patch)
tree4386c869b35d219e0e44e2862000fcc47d2015d6 /erts/emulator/drivers/win32/win_efile.c
parent09635c1b75a3659f05704dcebe5ed813f75b5ceb (diff)
downloadotp-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/win32/win_efile.c')
-rw-r--r--erts/emulator/drivers/win32/win_efile.c2
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);