]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix the return code of archive_string_append_from_wcs_in_codepage().
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 16 May 2011 03:44:15 +0000 (23:44 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 16 May 2011 03:44:15 +0000 (23:44 -0400)
SVN-Revision: 3338

libarchive/archive_string.c

index abd1803ec893e9790edff7d418ce2193769462f1..cacdcded49d68c6fcfdbd7d2e710efde2b3aa784 100644 (file)
@@ -635,7 +635,7 @@ archive_string_append_from_wcs_in_codepage(struct archive_string *as,
        }
        as->length += count;
        as->s[as->length] = '\0';
-       return (defchar_used?-1:0);
+       return (defchar_used?-1:ret);
 }
 
 #elif defined(HAVE_WCSNRTOMBS)