From: Erik H. <er...@ho...> - 2009-04-05 22:58:33
|
The array db only has 2 entries. So indexing at 2 and 3 is out of bounds. --- src/itdb_itunesdb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c index c7bf673..d96019f 100644 --- a/src/itdb_itunesdb.c +++ b/src/itdb_itunesdb.c @@ -3035,7 +3035,7 @@ Itdb_iTunesDB *itdb_parse (const gchar *mp, GError **error) } else { - gchar *str = g_build_filename (mp, db[0], db[1], db[2], db[3], NULL); + gchar *str = g_build_filename (mp, db[0], db[1], NULL, NULL, NULL); g_set_error (error, ITDB_FILE_ERROR, ITDB_FILE_ERROR_NOTFOUND, |