src/packer.cpp: fix bug in constructor introduced during cleanup

Introduced in 10e759f1f1
This commit is contained in:
Markus F.X.J. Oberhumer 2023-09-05 21:09:17 +02:00
parent e93172bd33
commit 38d6cb090c

View File

@ -36,7 +36,7 @@
//
**************************************************************************/
PackerBase::PackerBase(InputFile *f) : fi(f), file_size(f ? f->st.st_size : 0) {
PackerBase::PackerBase(InputFile *f) : fi(f), file_size(f ? f->st_size() : 0) {
ph.reset();
mem_size_assert(1, file_size);
}