diff options
Diffstat (limited to '')
-rw-r--r-- | src/tag_ape.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tag_ape.c b/src/tag_ape.c index babefcda3..4841b3138 100644 --- a/src/tag_ape.c +++ b/src/tag_ape.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2009 The Music Player Daemon Project + * Copyright (C) 2003-2010 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -17,6 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "config.h" #include "tag_ape.h" #include "tag.h" #include "tag_table.h" @@ -27,8 +28,8 @@ #include <stdio.h> static const char *const ape_tag_names[TAG_NUM_OF_ITEM_TYPES] = { - [TAG_ITEM_ALBUM_ARTIST] = "album artist", - [TAG_ITEM_DATE] = "year" + [TAG_ALBUM_ARTIST] = "album artist", + [TAG_DATE] = "year", }; static enum tag_type @@ -82,7 +83,7 @@ tag_ape_load(const char *file) unsigned char reserved[8]; } footer; - fp = fopen(file, "r"); + fp = fopen(file, "rb"); if (!fp) return NULL; |