More BE fixes.

This commit is contained in:
Con Kolivas 2011-03-20 22:31:38 +11:00
parent 77d44ce108
commit 738cde54ed

View file

@ -77,8 +77,9 @@ void write_magic(rzip_control *control)
if (ENCRYPT)
memcpy(&magic[6], &control->salt, 8);
else if (!STDIN || !STDOUT || control->eof) {
memcpy(&magic[6], &control->st_size, 8);
control->st_size = le64toh(control->st_size);
i64 esize = htole64(control->st_size);
memcpy(&magic[6], &esize, 8);
}
/* save LZMA compression flags */