Skip to content

Commit

Permalink
Fix copy-paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
kientzle committed Jul 8, 2024
1 parent fd5ca7c commit ca81293
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libarchive/archive_read_support_format_tar.c
Original file line number Diff line number Diff line change
Expand Up @@ -1425,8 +1425,8 @@ header_common(struct archive_read *a, struct tar *tar,
break;
case '2': /* Symlink */
archive_entry_set_link_to_symlink(entry);
existing_wcs_linkpath = archive_entry_hardlink_w(entry);
existing_linkpath = archive_entry_hardlink(entry);
existing_wcs_linkpath = archive_entry_symlink_w(entry);
existing_linkpath = archive_entry_symlink(entry);
if ((existing_linkpath == NULL || existing_linkpath[0] == '\0')
&& (existing_wcs_linkpath == NULL || existing_wcs_linkpath[0] == '\0')) {
struct archive_string linkpath;
Expand Down Expand Up @@ -1948,7 +1948,7 @@ header_pax_extension(struct archive_read *a, struct tar *tar,
else {
/* PAX default UTF-8 */
sconv = archive_string_conversion_from_charset(
&(a->archive), "UTF-8", 0);
&(a->archive), "UTF-8", 1);
if (sconv == NULL)
return (ARCHIVE_FATAL);
if (tar->compat_2x)
Expand Down

0 comments on commit ca81293

Please sign in to comment.