mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Should be doing endian change on variable, not pointer.
This commit is contained in:
parent
2736118f82
commit
8614ede6e0
6
lrzip.c
6
lrzip.c
|
|
@ -719,9 +719,9 @@ void get_header_info(rzip_control *control, int fd_in, uchar *ctype, i64 *c_len,
|
||||||
fatal("Failed to read in get_header_info");
|
fatal("Failed to read in get_header_info");
|
||||||
if (unlikely(read(fd_in, last_head, read_len) != read_len))
|
if (unlikely(read(fd_in, last_head, read_len) != read_len))
|
||||||
fatal("Failed to read_i64 in get_header_info");
|
fatal("Failed to read_i64 in get_header_info");
|
||||||
c_len = le64toh(c_len);
|
*c_len = le64toh(*c_len);
|
||||||
u_len = le64toh(u_len);
|
*u_len = le64toh(*u_len);
|
||||||
last_head = le64toh(last_head);
|
*last_head = le64toh(*last_head);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue