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



commit 05e5ea653de88d833e0c5216e974d3ddcfb900b0
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]