Commit eda46bc0 authored by Max Kellermann's avatar Max Kellermann

tag_{id3,ape}: explicitly open files in binary mode

Add the flag "b" to fopen(). Windows compatibility.
parent c727e869
......@@ -78,7 +78,7 @@ tag_ape_load(const char *file)
unsigned char reserved[8];
} footer;
fp = fopen(file, "r");
fp = fopen(file, "rb");
if (!fp)
return NULL;
......
......@@ -495,7 +495,7 @@ struct tag *tag_id3_load(const char *file)
struct id3_tag *tag;
FILE *stream;
stream = fopen(file, "r");
stream = fopen(file, "rb");
if (!stream) {
g_debug("tag_id3_load: Failed to open file: '%s', %s",
file, strerror(errno));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment