From 796425205b78b4ca8c62e3cb448249a5a84f7dc0 Mon Sep 17 00:00:00 2001 From: Kenneth Perry Date: Fri, 19 Dec 2014 07:24:43 -0600 Subject: [PATCH] win: scandir use 'ls' for formatting long strings PR-URL: https://github.com/libuv/libuv/pull/75/files Reviewed-By: Bert Belder --- src/win/fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win/fs.c b/src/win/fs.c index 7f3704e8..c5a4b2b7 100644 --- a/src/win/fs.c +++ b/src/win/fs.c @@ -732,9 +732,9 @@ void fs__readdir(uv_fs_t* req) { if (len == 0) { fmt = L"./*"; } else if (pathw[len - 1] == L'/' || pathw[len - 1] == L'\\') { - fmt = L"%s*"; + fmt = L"%ls*"; } else { - fmt = L"%s\\*"; + fmt = L"%ls\\*"; } /* Figure out whether path is a file or a directory. */