[tracker] tracker-extract: Don't use strlen+1 for MP3 id3v20/v22 comments
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract: Don't use strlen+1 for MP3 id3v20/v22 comments
- Date: Thu, 5 Nov 2009 12:49:38 +0000 (UTC)
commit 02e1c4c0258d87f6399f4a50137ebd911cea56f4
Author: Martyn Russell <martyn lanedo com>
Date: Thu Nov 5 12:34:59 2009 +0000
tracker-extract: Don't use strlen+1 for MP3 id3v20/v22 comments
This looks all kinds of wrong. I tested it and it seems to work fine.
src/tracker-extract/tracker-extract-mp3.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-mp3.c b/src/tracker-extract/tracker-extract-mp3.c
index d335a59..66b8b4e 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -1553,8 +1553,7 @@ get_id3v20_tags (const gchar *data,
switch (frame) {
case ID3V2_COM:
- tag->comment = g_strdup (word + strlen (word) + 1);
- g_free (word);
+ tag->comment = word;
break;
case ID3V2_TAL:
tag->album = word;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]