libxbps: [unpack] fixed passing dangling pointer to unpack cb.

This commit is contained in:
Juan RP 2012-07-21 10:41:19 +02:00
parent e3fbc01cbe
commit a756060d38

View File

@ -473,6 +473,11 @@ unpack_archive(struct xbps_handle *xhp,
archive_read_data_skip(ar);
continue;
}
/*
* Reset entry_pname again because if entry's pathname
* has been changed it will become a dangling pointer.
*/
entry_pname = archive_entry_pathname(entry);
}
/*
* Extract entry from archive.