99fefeba2d
* regen some patches
22 lines
978 B
Plaintext
22 lines
978 B
Plaintext
$OpenBSD: patch-src_discdb_c,v 1.3 2008/05/13 14:20:25 naddy Exp $
|
|
--- src/discdb.c.orig Thu Apr 15 20:23:37 2004
|
|
+++ src/discdb.c Tue May 13 16:15:31 2008
|
|
@@ -311,7 +311,7 @@ gboolean DiscDBDoQuery(DiscInfo *disc,DiscDBServer *se
|
|
query->query_match=MATCH_EXACT;
|
|
query->query_matches=0;
|
|
|
|
- while((inbuffer=DiscDBReadLine(&dataptr))) {
|
|
+ while(query->query_matches < MAX_INEXACT_MATCHES && (inbuffer=DiscDBReadLine(&dataptr))) {
|
|
query->query_list[query->query_matches].list_genre=
|
|
DiscDBGenreValue(g_strstrip(strtok(inbuffer," ")));
|
|
|
|
@@ -331,7 +331,7 @@ gboolean DiscDBDoQuery(DiscInfo *disc,DiscDBServer *se
|
|
query->query_match=MATCH_INEXACT;
|
|
query->query_matches=0;
|
|
|
|
- while((inbuffer=DiscDBReadLine(&dataptr))) {
|
|
+ while(query->query_matches < MAX_INEXACT_MATCHES && (inbuffer=DiscDBReadLine(&dataptr))) {
|
|
query->query_list[query->query_matches].list_genre=
|
|
DiscDBGenreValue(g_strstrip(strtok(inbuffer," ")));
|
|
|