summaryrefslogtreecommitdiff
blob: 7fc60e367b7d5afc03c11db32fc320e9cec62084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- libcdaudio-0.99.10/src/cddb.c.orig	2005-04-03 15:37:04.180240520 +0200
+++ libcdaudio-0.99.10/src/cddb.c	2005-04-03 15:38:07.389631232 +0200
@@ -1034,7 +1034,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) {
 	index = 0;