]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
mbstowcs returns size_t, so store the result in a size_t.
authorTim Kientzle <kientzle@gmail.com>
Sun, 8 Aug 2010 22:42:33 +0000 (18:42 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sun, 8 Aug 2010 22:42:33 +0000 (18:42 -0400)
SVN-Revision: 2547

libarchive/archive_string.c

index f93cb5fcc2176ca3b06c60ad61c9db07dddd1d86..2dd6b1b8589ab619911112d49c5eceb0b9cde8ec 100644 (file)
@@ -409,7 +409,7 @@ int
 __archive_wstrappend_mbs(struct archive_wstring *dest,
                         struct archive_string *src)
 {
-       int r;
+       size_t r;
        /*
         * No single byte will be more than one wide character,
         * so this length estimate will always be big enough.