diff --git a/src/pack.c b/src/pack.c index 2d422ef..faa5b7a 100644 --- a/src/pack.c +++ b/src/pack.c @@ -197,7 +197,7 @@ int pack_files(const char* outfile, const char** infiles, const uint32_t nfiles) infd = open(infiles[i], O_RDONLY); while((bytes = read(infd, buf, BLOCKSIZE))) { #else - nf = fopen(infiles[i], "rb"); + inf = fopen(infiles[i], "rb"); while((bytes = fread(buf, 1, BLOCKSIZE, inf))) { #endif WRITE(buf, bytes); // Data.