From: Martin Holst Swende Date: Wed, 24 Jun 2015 16:31:44 +0000 (+0200) Subject: Merge pull request #123 from frederikmoellers/master X-Git-Tag: v2.2.0~9 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/a94349fc47046c53b5be4a7600e732081a9d2e88?hp=2da2e9283771f20e4fb809709ea1c97c0636e455 Merge pull request #123 from frederikmoellers/master Fix comparison error in fpga_compress --- diff --git a/client/fpga_compress.c b/client/fpga_compress.c index f7333b36..5c168292 100644 --- a/client/fpga_compress.c +++ b/client/fpga_compress.c @@ -96,7 +96,7 @@ int zlib_compress(FILE *infile[], uint8_t num_infiles, FILE *outfile) } } - if (i >= num_infiles * FPGA_CONFIG_SIZE) { + if (i > num_infiles * FPGA_CONFIG_SIZE) { fprintf(stderr, "Input files too big (total > %lu bytes). These are probably not PM3 FPGA config files.", num_infiles*FPGA_CONFIG_SIZE); for(uint16_t j = 0; j < num_infiles; j++) { fclose(infile[j]);