]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/fpga_compress.c
Update README.md
[proxmark3-svn] / client / fpga_compress.c
index a672ab585e99ffbcd75c4d7ab25d391f05c6c480..fc298a8b87b6bb948be72a69d4c731d559e1ede6 100644 (file)
@@ -297,9 +297,9 @@ int main(int argc, char **argv)
                }
                infiles = calloc(num_input_files, sizeof(FILE*));
                for (uint16_t i = 0; i < num_input_files; i++) { 
-                       infiles[i] = fopen(argv[i+hardnested_mode?2:1], "rb");
+                       infiles[i] = fopen(argv[i+(hardnested_mode?2:1)], "rb");
                        if (infiles[i] == NULL) {
-                               fprintf(stderr, "Error. Cannot open input file %s", argv[i+hardnested_mode?2:1]);
+                               fprintf(stderr, "Error. Cannot open input file %s", argv[i+(hardnested_mode?2:1)]);
                                return(EXIT_FAILURE);
                        }
                }
Impressum, Datenschutz