Fix handling long file names in readdir on MS-Windows
commit5ee3ef8e1867d284be0ff9f654f8bde46e751978
authorEli Zaretskii <eliz@gnu.org>
Mon, 31 Aug 2015 14:52:47 +0000 (31 17:52 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 31 Aug 2015 14:52:47 +0000 (31 17:52 +0300)
tree6e82d1b10ae6b1f8f208ed43e2cc55ff7eb160b8
parent697be62c5f2b86e8ad93dfcaa0df07890c24d989
Fix handling long file names in readdir on MS-Windows

* src/w32.c (sys_readdir): Append "\*" to the directory after
converting it to UTF-16/ANSI, not before, to avoid overflowing the
260-character limit on file names in filename_to_utf16/ansi.
src/w32.c