[totem-pl-parser] Use g_strstr_len() instead of GNU extension memmem



commit fc603d2f98802ae20f4902f2b1dd589b891595b6
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Dec 14 10:53:20 2009 +0000

    Use g_strstr_len() instead of GNU extension memmem

 plparse/totem-pl-parser.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index bc50b87..9506f48 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -1667,8 +1667,7 @@ totem_pl_parser_cleanup_xml (char *contents)
 		/* Broken file? */
 		if (end == NULL)
 			return;
-		if (memmem (needle, end - needle,
-			    "]]>", strlen ("]]>")) != NULL) {
+		if (g_strstr_len (needle, end - needle, "]]>") != NULL) {
 			/* Advance 3 and skip */
 			needle += 3;
 			continue;



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