FileBase::set_extent(offset, length) constrains seek() and tell()

This commit is contained in:
John Reiser
2007-02-03 13:31:44 -08:00
parent d1e352c9ee
commit a545a3938f
3 changed files with 40 additions and 7 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ Packer::Packer(InputFile *f) :
last_patch(NULL), last_patch_len(0), last_patch_off(0)
{
if (fi != NULL)
file_size = fi->st.st_size;
file_size = fi->st_size();
uip = new UiPacker(this);
memset(&ph, 0, sizeof(ph));
}