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



commit 686382b42e6b1da9c3f1789e2c55ba571750b050
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 0c56894..5886b9a 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -1157,16 +1157,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]