Use UPX_MAGIC_LE32 instead of PackHeader::magic.

committer: mfx <mfx> 977922670 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2000-12-27 13:11:10 +00:00
parent 0ffe40c621
commit c3ec6b73e5
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -348,9 +348,9 @@ void PackLinuxI386elf::pack(OutputFile *fo)
ph.u_len = total_in;
ph.c_len = total_out;
// write header
// write packheader
const int hsize = ph.getPackHeaderSize();
set_le32(obuf, ph.magic); // note: always le32
set_le32(obuf, UPX_MAGIC_LE32); // note: always le32
patchPackHeader(obuf, hsize);
fo->write(obuf, hsize);