From eda46bc07f8bb557c4d208045a1eca73bc9d5f92 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 20 May 2010 07:11:33 +0200 Subject: tag_{id3,ape}: explicitly open files in binary mode Add the flag "b" to fopen(). Windows compatibility. --- src/tag_ape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tag_ape.c') diff --git a/src/tag_ape.c b/src/tag_ape.c index 4dfba2ca..9a07c3ac 100644 --- a/src/tag_ape.c +++ b/src/tag_ape.c @@ -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; -- cgit v1.2.3