memcpy is a silly way to set that variable which may be different size.

This commit is contained in:
Con Kolivas 2011-03-22 08:19:21 +11:00
parent 25bfdacfe1
commit 7101372167

View file

@ -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);