flac file should be opened in binary mode explicitly to work on windows

This commit is contained in:
Josh Coalson
2002-04-24 04:53:12 +00:00
parent 32751943a6
commit a2518e1133

View File

@@ -71,7 +71,7 @@ int main(int argc, char *argv[])
if(list_mode) { if(list_mode) {
for(first_file = i; i < argc; i++) { for(first_file = i; i < argc; i++) {
FILE *f = fopen(argv[i], "r"); FILE *f = fopen(argv[i], "rb");
if(0 == f) { if(0 == f) {
fprintf(stderr, "ERROR opening %s\n", argv[i]); fprintf(stderr, "ERROR opening %s\n", argv[i]);