mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
fpad4 from st_size(), not from getBytesWritten()
This commit is contained in:
parent
0c052e4506
commit
ece7384be4
|
@ -72,7 +72,7 @@ up4(unsigned x)
|
|||
static unsigned
|
||||
fpad4(OutputFile *fo)
|
||||
{
|
||||
unsigned len = fo->getBytesWritten();
|
||||
unsigned len = fo->st_size();
|
||||
unsigned d = 3u & (0 - len);
|
||||
unsigned zero = 0;
|
||||
fo->write(&zero, d);
|
||||
|
|
Loading…
Reference in New Issue
Block a user