[tracker/tracker-0.6] Fixes: #579049, use g_strndup() instead of strndup()



commit 0369e7dbbdd0d2b62a34b3f4102969a15382643f
Author: Jasper Lievisse Adriaanse <jasper humppa nl>
Date:   Wed Apr 15 16:40:03 2009 +0100

    Fixes: #579049, use g_strndup() instead of strndup()
---
 src/tracker-extract/tracker-extract-mp3.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/tracker-extract/tracker-extract-mp3.c b/src/tracker-extract/tracker-extract-mp3.c
index 9525a32..fa6425e 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -855,7 +855,7 @@ get_id3v24_tags (const gchar *data,
 						  NULL, NULL, NULL);
 				break;
 			case 0x03 :
-				word = strndup (text, csize - offset);
+				word = g_strndup (text, csize - offset);
 				break;
 				
 			default:



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