mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
flac file should be opened in binary mode explicitly to work on windows
This commit is contained in:
@@ -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]);
|
||||||
|
|||||||
Reference in New Issue
Block a user