]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix the failure of archive_read_open_filename_w on Windows.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 10 Sep 2012 07:56:39 +0000 (16:56 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 10 Sep 2012 07:56:39 +0000 (16:56 +0900)
Thas caused test_archive_match_path and test_open_filename failure.

libarchive/archive_read_open_filename.c

index b31c2df575e16ba5b6b0d0b20cb2ed60ffdb9444..802ecd70e483febf0a6223ceb6212d06ad5dec7c 100644 (file)
@@ -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