From 710137216731840232a8addc7f01f3fcbb7b21f8 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 22 Mar 2011 08:19:21 +1100 Subject: [PATCH] memcpy is a silly way to set that variable which may be different size. --- lrzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lrzip.c b/lrzip.c index 04f20e0..7c8c330 100644 --- a/lrzip.c +++ b/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);