1
0
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:
John Reiser 2011-05-28 12:18:27 -07:00
parent 0c052e4506
commit ece7384be4

View File

@ -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);