long datalen;
buflen = upkg_export_read(f, buf, sizeof buf);
- if (uo->pkg->version >= 63) {
+ if (f->pkg->version >= 63) {
/*
* There's an offset to the end of the image data here; not
* clear why it's useful since it's implied by the very next
/* At this point, the current file offset should match the one recorded
* above. */
- if (uo->pkg->version >= 63 && end_offset != (f->base + f->offset)) {
+ if (f->pkg->version >= 63 && end_offset != (f->base + f->offset)) {
u_err(uo, "mipmap end offset does not match data size");
goto err_free;
}