$OpenBSD: patch-src_tracker-extract_tracker-extract-mp3_c,v 1.10 2011/10/06 20:26:47 ajacoutot Exp $ --- src/tracker-extract/tracker-extract-mp3.c.orig Thu Oct 6 15:07:14 2011 +++ src/tracker-extract/tracker-extract-mp3.c Thu Oct 6 20:22:53 2011 @@ -1049,10 +1049,10 @@ id3v2_strlen (const gchar encoding, case 0x02: /* UTF-16, string terminated by two NUL bytes */ - pos = memmem (text, len, "\0\0\0", 3); + pos = g_strstr_len (text, len, "\0\0\0"); if (pos == NULL) { - pos = memmem (text, len, "\0\0", 2); + pos = g_strstr_len (text, len, "\0\0"); } else { pos++; }