summaryrefslogtreecommitdiff
path: root/sysutils/gnome-vfs2/patches/patch-ac
blob: 4c1bc805d050ed80e57f6e0adc195643d91cda4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ac,v 1.5 2005/04/12 20:12:02 jmmv Exp $

--- modules/cdda-cddb.c.orig	2004-07-25 15:40:35.000000000 +0000
+++ modules/cdda-cddb.c
@@ -440,7 +440,7 @@ CDDBDoQuery (cdrom_drive *cd_desc, CDDBS
     query->query_match=MATCH_INEXACT;
     query->query_matches=0;
 
-    while(!CDDBReadLine(socket,inbuffer,256)) {
+    while(query->query_matches < MAX_INEXACT_MATCHES && !CDDBReadLine(socket,inbuffer,256)) {
       query->query_list[query->query_matches].list_genre=
 	CDDBGenreValue(ChopWhite(strtok(inbuffer," ")));