unpack: make sure the xucd callbacks don't get a dangling pointer.

If the current entry filename has been changed, the pointer must be updated
to point to the updated string.
This commit is contained in:
Juan RP 2015-05-28 10:39:39 +02:00
parent 769a997afb
commit c464874c1e

View File

@ -439,6 +439,7 @@ unpack_archive(struct xbps_handle *xhp,
break;
} else {
if (xhp->unpack_cb != NULL) {
xucd.entry = entry_pname;
xucd.entry_extract_count++;
(*xhp->unpack_cb)(&xucd, xhp->unpack_cb_data);
}