From: Michihiro NAKAJIMA Date: Mon, 10 Sep 2012 07:56:39 +0000 (+0900) Subject: Fix the failure of archive_read_open_filename_w on Windows. X-Git-Tag: v3.1.0~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a46c6e58a56d0d12e85d1f65b7ba4d9e4103f440;p=thirdparty%2Flibarchive.git Fix the failure of archive_read_open_filename_w on Windows. Thas caused test_archive_match_path and test_open_filename failure. --- 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