From 8614ede6e0c76f093fd857530d1fa23e60890665 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 22 Mar 2011 08:03:05 +1100 Subject: [PATCH] Should be doing endian change on variable, not pointer. --- lrzip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lrzip.c b/lrzip.c index 25f6874..04f20e0 100644 --- a/lrzip.c +++ b/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"); if (unlikely(read(fd_in, last_head, read_len) != read_len)) fatal("Failed to read_i64 in get_header_info"); - c_len = le64toh(c_len); - u_len = le64toh(u_len); - last_head = le64toh(last_head); + *c_len = le64toh(*c_len); + *u_len = le64toh(*u_len); + *last_head = le64toh(*last_head); } }