From 3f372fdcc3f25fd9d8f76b5855248f5cef20e271 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Mon, 9 Nov 2015 22:44:14 +0100 Subject: [PATCH] Use HeaderSize constant in Decrypt. --- Decrypt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Decrypt.c b/Decrypt.c index 1cba71d..d88b3af 100644 --- a/Decrypt.c +++ b/Decrypt.c @@ -46,7 +46,7 @@ int main( int argc, const char *argv[] ) return 1; } - char header_data[48]; + char header_data[HeaderSize]; memcpy( header_data, buf.start, sizeof header_data ); memset( &header_data[8], 0, 8 ); @@ -61,7 +61,7 @@ int main( int argc, const char *argv[] ) printf( "Password len: %d\n", header.password_len ); printf( "ETL: %s\n", header.etl ); - if (buf.length - header.payload_size != 48) { + if (buf.length - header.payload_size != HeaderSize) { fprintf( stderr, "Error: Invalid file size\n" ); return 1; }