[Fix] Typo in non POSIX build of packfile.

This commit is contained in:
Allanis 2013-02-23 21:40:38 +00:00
parent 867f3cee8d
commit 54758a5de9

View File

@ -197,7 +197,7 @@ int pack_files(const char* outfile, const char** infiles, const uint32_t nfiles)
infd = open(infiles[i], O_RDONLY); infd = open(infiles[i], O_RDONLY);
while((bytes = read(infd, buf, BLOCKSIZE))) { while((bytes = read(infd, buf, BLOCKSIZE))) {
#else #else
nf = fopen(infiles[i], "rb"); inf = fopen(infiles[i], "rb");
while((bytes = fread(buf, 1, BLOCKSIZE, inf))) { while((bytes = fread(buf, 1, BLOCKSIZE, inf))) {
#endif #endif
WRITE(buf, bytes); // Data. WRITE(buf, bytes); // Data.