Need memmem in advance() to work properly for patching.
diff --git a/ocl.c b/ocl.c
index 6f845d4..5f29fd9 100644
--- a/ocl.c
+++ b/ocl.c
@@ -98,7 +98,8 @@ int clDevicesNum() {
void advance(char **area, unsigned *remaining, const char *marker)
{
- char *find = strstr(*area, marker);
+ char *find = memmem(*area, *remaining, marker, strlen(marker));
+
if (!find)
fprintf(stderr, "Marker \"%s\" not found\n", marker), exit(1);
*remaining -= find - *area;