Procházet zdrojové kódy

Merge branch 'maint'

* maint:
  Fix build with GCC
Bryan Drewery před 11 roky
rodič
revize
af341ba8a4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;