diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-02-16 13:17:12 +0900 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-02-16 13:17:12 +0900 |
commit | 97d9cd37d076d63d95aa187eb360e633f00ab7d6 (patch) | |
tree | a18be4ce02b08fca7d930a8e24fc9ee1e0ef0532 /libarchive/archive_string.c | |
parent | bf6fc3be7dde40e7c752762654938d80e5222b48 (diff) | |
download | libarchive-97d9cd37d076d63d95aa187eb360e633f00ab7d6.tar.gz |
Fix build failure in aggressive warnings on msys.
Diffstat (limited to 'libarchive/archive_string.c')
-rw-r--r-- | libarchive/archive_string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_string.c b/libarchive/archive_string.c index 89f043a2..ecdb01f0 100644 --- a/libarchive/archive_string.c +++ b/libarchive/archive_string.c @@ -517,7 +517,7 @@ archive_wstring_append_from_mbs_in_codepage(struct archive_wstring *dest, if (NULL == archive_wstring_ensure(dest, dest->length + count + 1)) return (-1); - wmemcpy(dest->s + dest->length, (wchar_t *)s, count); + wmemcpy(dest->s + dest->length, (const wchar_t *)s, count); if ((sc->flag & SCONV_FROM_UTF16BE) && !is_big_endian()) { uint16_t *u16 = (uint16_t *)(dest->s + dest->length); int b; |