Explorar o código

Merge branch 'maint'

* maint:
  Fix build with GCC
Bryan Drewery %!s(int64=11) %!d(string=hai) anos
pai
achega
af341ba8a4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/compat/memmem.c

+ 1 - 1
src/compat/memmem.c

@@ -51,7 +51,7 @@ memmem(const void *l, size_t l_len, const void *s, size_t s_len)
 
 	/* special case where s_len == 1 */
 	if (s_len == 1)
-		return memchr(l, (int)*cs, l_len);
+		return memchr((void*)l, (int)*cs, l_len);
 
 	/* the last position where its possible to find "s" in "l" */
 	last = (char *)cl + l_len - s_len;