From 12190f0ae814d322475df2e1670640739dfefc38 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Fri, 14 Sep 2018 04:54:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Fix=20build=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fileReader.h | 1 + src/main.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/fileReader.h b/src/fileReader.h index d8300fa..5bc28cf 100644 --- a/src/fileReader.h +++ b/src/fileReader.h @@ -1,5 +1,6 @@ #pragma once +#include #include void initFileReader(char path[], unsigned long offset); diff --git a/src/main.c b/src/main.c index fcfc73c..074f395 100644 --- a/src/main.c +++ b/src/main.c @@ -57,7 +57,7 @@ int main(int argc, char *argv[]) { initFileReader(state.diskName, state.diskOffset); //Skip local file header (30 bytes + additional length) - getBytes(compressedChunk, 30UL); + getBytes(compressedChunk, 30UL, false); //Check that header is correct const uint32_t magic = getUint32(compressedChunk); if (magic != LOCAL_FILE_HEADER_MAGIC) { @@ -67,12 +67,12 @@ int main(int argc, char *argv[]) { //Read additional length const unsigned long additionalLength = getUint16(compressedChunk + 26) + getUint16(compressedChunk + 28); if (additionalLength > 0UL) { - getBytes(NULL, additionalLength); + getBytes(NULL, additionalLength, false); } //If file is encrypted, skip 12-byte encryption header if (state.isEncrypted) { - getBytes(compressedChunk, ENCRYPTION_HEADER_LENGTH); + getBytes(compressedChunk, ENCRYPTION_HEADER_LENGTH, false); decrypt(compressedChunk, ENCRYPTION_HEADER_LENGTH); }