totem-pl-parser-04-memmem.diff revision 18233
17935N/A--- totem-pl-parser-2.28.2/plparse/totem-pl-parser.c.old 2009-12-15 14:19:41.204748000 +0800
17935N/A+++ totem-pl-parser-2.28.2/plparse/totem-pl-parser.c 2009-12-15 14:20:46.111190000 +0800
17935N/A@@ -1667,8 +1667,7 @@
17935N/A /* Broken file? */
17935N/A if (end == NULL)
17935N/A return;
17935N/A- if (memmem (needle, end - needle,
17935N/A- "]]>", strlen ("]]>")) != NULL) {
17935N/A+ if (g_strstr_len (needle, end - needle, "]]>") != NULL) {
17935N/A /* Advance 3 and skip */
17935N/A needle += 3;
17935N/A continue;
18233N/Adiff -ruN totem-pl-parser-2.28.2.orig/configure.in totem-pl-parser-2.28.2/configure.in
18233N/A--- totem-pl-parser-2.28.2.orig/configure.in 2010-01-30 07:19:37.115213420 +0000
18233N/A+++ totem-pl-parser-2.28.2/configure.in 2010-01-30 07:20:01.050981893 +0000
18233N/A@@ -71,15 +71,15 @@
18233N/A
18233N/A if test "x$enable_gmime" = "xyes" ; then
18233N/A PKG_CHECK_MODULES(GMIME,
18233N/A- gmime-2.4,
18233N/A+ gmime-2.6,
18233N/A [have_gmime=yes],
18233N/A [have_gmime=no])
18233N/A
18233N/A if test "x$have_gmime" = "xyes" ; then
18233N/A- AC_SUBST(GMIME, gmime-2.4)
18233N/A+ AC_SUBST(GMIME, gmime-2.6)
18233N/A AC_SUBST(USEGMIME, yes)
18233N/A AC_DEFINE(HAVE_GMIME, 1, [GMime available in the system])
18233N/A- pkg_modules="$pkg_modules gmime-2.4"
18233N/A+ pkg_modules="$pkg_modules gmime-2.6"
18233N/A else
18233N/A AC_MSG_ERROR([libgmime is required to compile totem-pl-parser.])
18233N/A fi