Merge pull request #2 from edbordin/master
authorGregory Davill <greg.davill@gmail.com>
Sun, 26 Jul 2020 03:28:43 +0000 (12:58 +0930)
committerGitHub <noreply@github.com>
Sun, 26 Jul 2020 03:28:43 +0000 (12:58 +0930)
set file_size in read mode

ecpprog/ecpprog.c

index 15368e9caa87e0008629f62f43d843365aa8b096..c9550e46503b1f2337c8389e645ff15f4f77fa03 100644 (file)
@@ -867,6 +867,7 @@ int main(int argc, char **argv)
                        perror(0);
                        return EXIT_FAILURE;
                }
+               file_size = read_size;
        } else {
                f = (strcmp(filename, "-") == 0) ? stdin : fopen(filename, "rb");
                if (f == NULL) {