We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33b9041 commit 83a7662Copy full SHA for 83a7662
bacmp.c
@@ -56,9 +56,9 @@ int main(int argc, char *argv[]) {
56
}
57
58
FILE *fa, *fb;
59
- if ( (fa = fopen(argv[1], "r")) == NULL)
+ if ( (fa = fopen(argv[1], "rb")) == NULL)
60
fprintf(stderr, "Could not open file: <%s>\n", argv[1]);
61
- if ( (fb = fopen(argv[2], "r")) == NULL)
+ if ( (fb = fopen(argv[2], "rb")) == NULL)
62
fprintf(stderr, "Could not open file: <%s>\n", argv[2]);
63
if (fa == NULL || fb == NULL) {
64
exit(1);
0 commit comments