Fix extraction filepath copying on WIN32

This commit is contained in:
Michael Scire 2018-01-24 22:28:35 -08:00
parent 714a272ab3
commit 0486b3c00d

View file

@ -21,7 +21,7 @@ void os_strcpy(oschar_t *dst, const char *src) {
in = (char *)src;
out = (char *)dst;
in_bytes = src_len;
out_bytes = dst_len;
out_bytes = dst_len * sizeof(oschar_t);
iconv_t cd = iconv_open("UTF-16LE", "UTF-8");
iconv(cd, &in, &in_bytes, &out, &out_bytes);