openbsd-ports/x11/gnome/tracker/patches/patch-src_tracker-extract_tracker-extract-mp3_c
ajacoutot b046d640cb Update to version 0.12.10.
Missing @pkgpath marker, spotted by Mikolaj Kucharski.
2012-02-16 22:20:02 +00:00

20 lines
636 B
Plaintext

$OpenBSD: patch-src_tracker-extract_tracker-extract-mp3_c,v 1.13 2012/02/16 22:20:02 ajacoutot Exp $
OpenBSD does not have memmem().
--- src/tracker-extract/tracker-extract-mp3.c.orig Wed Feb 15 11:41:48 2012
+++ src/tracker-extract/tracker-extract-mp3.c Wed Feb 15 16:52:26 2012
@@ -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++;
}