--- libcdaudio/source/cddb.c.orig 2005-03-11 21:31:05.908379578 -0500 +++ libcdaudio/source/cddb.c 2005-03-11 21:31:50.487509858 -0500 @@ -1294,7 +1294,7 @@ } query->query_matches = 0; - while (!cddb_read_line (sock, inbuffer, 256)) + while (query->query_matches < MAX_INEXACT_MATCHES && !cddb_read_line (sock, inbuffer, 256)) { slashed = 0; if (strchr (inbuffer, '/') != NULL && parse_disc_artist)