From a46c6e58a56d0d12e85d1f65b7ba4d9e4103f440 Mon Sep 17 00:00:00 2001 From: Michihiro NAKAJIMA Date: Mon, 10 Sep 2012 16:56:39 +0900 Subject: [PATCH] Fix the failure of archive_read_open_filename_w on Windows. Thas caused test_archive_match_path and test_open_filename failure. --- libarchive/archive_read_open_filename.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libarchive/archive_read_open_filename.c b/libarchive/archive_read_open_filename.c index b31c2df57..802ecd70e 100644 --- a/libarchive/archive_read_open_filename.c +++ b/libarchive/archive_read_open_filename.c @@ -168,6 +168,7 @@ archive_read_open_filename_w(struct archive *a, const wchar_t *wfilename, } else { #if defined(_WIN32) && !defined(__CYGWIN__) mine->filename_type = FNT_WCS; + wcscpy(mine->filename.w, wfilename); #else /* * POSIX system does not support a wchar_t interface for -- 2.47.3