Explorar o código

make new regex code use __mempcpy

Peter S. Mazinger %!s(int64=20) %!d(string=hai) anos
pai
achega
dee597fea7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      libc/misc/regex/regexec.c

+ 1 - 1
libc/misc/regex/regexec.c

@@ -385,7 +385,7 @@ re_search_2_stub (bufp, string1, length1, string2, length2, start, range, regs,
 
 	if (BE (s == NULL, 0))
 	  return -2;
-#ifdef _LIBC
+#if defined _LIBC || defined __UCLIBC__
 	memcpy (__mempcpy (s, string1, length1), string2, length2);
 #else
 	memcpy (s, string1, length1);