Skip to content

Commit

Permalink
bench: use 'binary' mode when opening sample file
Browse files Browse the repository at this point in the history
  • Loading branch information
mnunberg committed Nov 25, 2014
1 parent 6aac52c commit e23810e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perf/bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE);
}

fh = fopen(argv[1], "r");
fh = fopen(argv[1], "rb");
if (fh == NULL) {
perror(argv[1]);
exit(EXIT_FAILURE);
Expand Down

0 comments on commit e23810e

Please sign in to comment.