mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-01-09 10:00:27 +01:00
yet yet yet yet more BE fixes.
This commit is contained in:
parent
04d3d6a1f5
commit
637b0d5f7c
13
stream.c
13
stream.c
|
|
@ -1098,12 +1098,15 @@ void *open_stream_in(rzip_control *control, int f, int n, int chunk_bytes)
|
|||
goto failed;
|
||||
}
|
||||
/* Read in the expected chunk size */
|
||||
if (unlikely(!ENCRYPT && read_val(control, f, &sinfo->size, sinfo->chunk_bytes))) {
|
||||
print_err("Failed to read in chunk size in open_stream_in\n");
|
||||
goto failed;
|
||||
if (!ENCRYPT) {
|
||||
if (unlikely(read_val(control, f, &sinfo->size, sinfo->chunk_bytes))) {
|
||||
print_err("Failed to read in chunk size in open_stream_in\n");
|
||||
goto failed;
|
||||
}
|
||||
sinfo->size = le64toh(sinfo->size);
|
||||
print_maxverbose("Chunk size: %lld\n", sinfo->size);
|
||||
control->st_size += sinfo->size;
|
||||
}
|
||||
print_maxverbose("Chunk size: %lld\n", sinfo->size);
|
||||
control->st_size += sinfo->size;
|
||||
}
|
||||
sinfo->initial_pos = get_readseek(control, f);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue