mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Use new file+MemBuffer methods.
committer: mfx <mfx> 1042576321 +0000
This commit is contained in:
parent
ec5840fb2a
commit
a709b38065
|
@ -508,8 +508,8 @@ void Packer::copyOverlay(OutputFile *fo, unsigned overlay,
|
|||
|
||||
do {
|
||||
unsigned len = overlay < buf_size ? overlay : buf_size;
|
||||
fi->readx(*buf, len);
|
||||
fo->write(*buf, len);
|
||||
fi->readx(buf, len);
|
||||
fo->write(buf, len);
|
||||
overlay -= len;
|
||||
} while (overlay > 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user