tracker r2758 - in trunk: . src/tracker-extract



Author: mottela
Date: Fri Jan  2 14:44:29 2009
New Revision: 2758
URL: http://svn.gnome.org/viewvc/tracker?rev=2758&view=rev

Log:
Corrected comment buffer size in mp3 extraction

Modified:
   trunk/ChangeLog
   trunk/src/tracker-extract/tracker-extract-mp3.c

Modified: trunk/src/tracker-extract/tracker-extract-mp3.c
==============================================================================
--- trunk/src/tracker-extract/tracker-extract-mp3.c	(original)
+++ trunk/src/tracker-extract/tracker-extract-mp3.c	Fri Jan  2 14:44:29 2009
@@ -724,27 +724,27 @@
 			switch (text_encode) {
 			case 0x00:
 				word = g_convert(text,
-						 csize-offset-1,
+						 csize-offset,
 						 "UTF-8",
 						 "ISO-8859-1",
 						 NULL, NULL, NULL);
 				break;
 			case 0x01 :
 				word = g_convert(text,
-						 csize-offset-1,
+						 csize-offset,
 						 "UTF-8",
 						 "UTF-16",
 						 NULL, NULL, NULL);
 				break;
 			case 0x02 :
 				word = g_convert(text,
-						 csize-offset-1,
+						 csize-offset,
 						 "UTF-8",
 						 "UTF-16BE",
 						 NULL, NULL, NULL);
 				break;
 			case 0x03 :
-				word = strndup (text, csize-offset-1);
+				word = strndup (text, csize-offset);
 				break;
 				
 			default:
@@ -753,7 +753,7 @@
 				 * iso-8859-1
 				 */
 				word = g_convert(text,
-						 csize,
+						 csize-offset,
 						 "UTF-8",
 						 "ISO-8859-1",
 						 NULL, NULL, NULL);
@@ -992,14 +992,14 @@
 			switch (text_encode) {
 			case 0x00:
 				word = g_convert(text,
-						 csize-offset-1,
+						 csize-offset,
 						 "UTF-8",
 						 "ISO-8859-1",
 						 NULL, NULL, NULL);
 				break;
 			case 0x01 :
 				word = g_convert(text,
-						 csize-offset-1,
+						 csize-offset,
 						 "UTF-8",
 						 "UCS-2",
 						 NULL, NULL, NULL);
@@ -1010,7 +1010,7 @@
 				 * iso-8859-1
 				 */
 				word = g_convert(text,
-						 csize-offset-1,
+						 csize-offset,
 						 "UTF-8",
 						 "ISO-8859-1",
 						 NULL, NULL, NULL);



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