From 61a7d1155ebf9333e35359056ffbe7c2a101176e Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Mon, 19 Oct 2020 00:32:33 +0200 Subject: [PATCH] Fixed initialization of read bytes counter in "encode" mode. --- frontend/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/main.c b/frontend/src/main.c index 72d7313..69264c6 100644 --- a/frontend/src/main.c +++ b/frontend/src/main.c @@ -148,7 +148,7 @@ static int encrypt(const char* const passphrase, const CHR* const input_path, co } clock_t clk_now, clk_update = clock(); - uint64_t crc_actual = CRC_INITIALIZER, bytes_read = sizeof(uint64_t); + uint64_t crc_actual = CRC_INITIALIZER, bytes_read = 0U; uint8_t buffer[BUFF_SIZE]; FPRINTF(stderr, T("%5.1f%% "), 0.0);