mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
yet yet yet more BE fixes.
This commit is contained in:
parent
2982cb7121
commit
44b93068a3
5
rzip.c
5
rzip.c
|
|
@ -266,6 +266,8 @@ static void put_literal(rzip_control *control, struct rzip_state *st, i64 last,
|
|||
{
|
||||
do {
|
||||
i64 len = p - last;
|
||||
i64 le_last;
|
||||
|
||||
if (len > 0xFFFF)
|
||||
len = 0xFFFF;
|
||||
|
||||
|
|
@ -274,7 +276,8 @@ static void put_literal(rzip_control *control, struct rzip_state *st, i64 last,
|
|||
|
||||
put_header(control, st->ss, 0, len);
|
||||
|
||||
if (unlikely(len && write_sbstream(control, st->ss, 1, last, len)))
|
||||
le_last = htole64(last);
|
||||
if (unlikely(len && write_sbstream(control, st->ss, 1, le_last, len)))
|
||||
fatal("Failed to write_stream in put_literal\n");
|
||||
last += len;
|
||||
} while (p > last);
|
||||
|
|
|
|||
Loading…
Reference in a new issue