Skip to content

Commit 83a7662

Browse files
committed
Try reading in "binary" mode to appease MS Windows
1 parent 33b9041 commit 83a7662

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bacmp.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ int main(int argc, char *argv[]) {
5656
}
5757

5858
FILE *fa, *fb;
59-
if ( (fa = fopen(argv[1], "r")) == NULL)
59+
if ( (fa = fopen(argv[1], "rb")) == NULL)
6060
fprintf(stderr, "Could not open file: <%s>\n", argv[1]);
61-
if ( (fb = fopen(argv[2], "r")) == NULL)
61+
if ( (fb = fopen(argv[2], "rb")) == NULL)
6262
fprintf(stderr, "Could not open file: <%s>\n", argv[2]);
6363
if (fa == NULL || fb == NULL) {
6464
exit(1);

0 commit comments

Comments
 (0)