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 committed 2015-05-28 10:39:39 +02:00
1 parent 769a997afb
commit c464874c1e
1 file changed
+1
+1
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);
}