mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-02-27 00:55:14 +08:00
Merge pull request #123 from frederikmoellers/master
Fix comparison error in fpga_compress
This commit is contained in:
commit
a94349fc47
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
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++) {
|
for(uint16_t j = 0; j < num_infiles; j++) {
|
||||||
fclose(infile[j]);
|
fclose(infile[j]);
|
||||||
|
|
Loading…
Reference in a new issue