zstd length fix after decryption

Change-Id: I61f52e1680646c684cdc0b715b41c15599afd677
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ 2016-10-30 15:56:59 +01:00
parent 9ac1c69cd4
commit b4dd591b25

View File

@ -235,7 +235,7 @@ int retrieve_file_from_archive(char *filename, int mode, char **buffer, FILE *de
tlen += olen;
if(st.st_size > 4){
if(tlen > 4){
#ifdef HAVE_ZSTD
memcpy(&magic, addr, 4);