mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-01-06 08:30:00 +01:00
memcpy is a silly way to set that variable which may be different size.
This commit is contained in:
parent
25bfdacfe1
commit
7101372167
2
lrzip.c
2
lrzip.c
|
|
@ -761,7 +761,7 @@ void get_fileinfo(rzip_control *control)
|
|||
/* Get file size */
|
||||
if (unlikely(fstat(fd_in, &st)))
|
||||
fatal("bad magic file descriptor!?\n");
|
||||
memcpy(&infile_size, &st.st_size, 8);
|
||||
infile_size = st.st_size;
|
||||
|
||||
/* Get decompressed size */
|
||||
read_magic(control, fd_in, &expected_size);
|
||||
|
|
|
|||
Loading…
Reference in a new issue