From 54758a5de9cfbcf0dd5ac167e8b3861dc5e247fc Mon Sep 17 00:00:00 2001 From: Allanis <allanis@saracraft.net> Date: Sat, 23 Feb 2013 21:40:38 +0000 Subject: [PATCH] [Fix] Typo in non POSIX build of packfile. --- src/pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.