[tracker] tracker-extract, mp3: Length of elements in this table is 3, not 4



commit 5b2be66dd29632e9feb22a69889e10bca71e4f4f
Author: Philip Van Hoof <philip codeminded be>
Date:   Wed Mar 30 11:53:28 2011 +0200

    tracker-extract, mp3: Length of elements in this table is 3, not 4
    
    Fixes NB#241206.

 src/tracker-extract/tracker-extract-mp3.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-mp3.c b/src/tracker-extract/tracker-extract-mp3.c
index dda4ab9..791d999 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -1145,16 +1145,16 @@ id3v2_get_frame (const gchar *name)
 
 	do {
 		m = (l + r) / 2;
-		if (strncmp (name, id3v2_frames[m].name, 4) < 0) {
+		if (strncmp (name, id3v2_frames[m].name, 3) < 0) {
 			/* left half */
 			r = m - 1;
 		} else {
 			/* right half */
 			l = m + 1;
 		}
-	} while (l <= r && strncmp (id3v2_frames[m].name, name, 4) != 0);
+	} while (l <= r && strncmp (id3v2_frames[m].name, name, 3) != 0);
 
-	if (strncmp (id3v2_frames[m].name, name, 4) == 0) {
+	if (strncmp (id3v2_frames[m].name, name, 3) == 0) {
 		return id3v2_frames[m].frame;
 	} else {
 		return ID3V2_UNKNOWN;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]