|
@@ -3316,11 +3316,15 @@ PREFIX(regex_compile) (ARG_PREFIX(pattern), ARG_PREFIX(size), syntax, bufp)
|
|
PATFETCH (c);
|
|
PATFETCH (c);
|
|
if ((c == ':' && *p == ']') || p == pend)
|
|
if ((c == ':' && *p == ']') || p == pend)
|
|
break;
|
|
break;
|
|
|
|
+#if CHAR_CLASS_MAX_LENGTH != 256
|
|
if (c1 < CHAR_CLASS_MAX_LENGTH)
|
|
if (c1 < CHAR_CLASS_MAX_LENGTH)
|
|
str[c1++] = c;
|
|
str[c1++] = c;
|
|
else
|
|
else
|
|
/* This is in any case an invalid class name. */
|
|
/* This is in any case an invalid class name. */
|
|
str[0] = '\0';
|
|
str[0] = '\0';
|
|
|
|
+#else
|
|
|
|
+ str[c1++] = c;
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
str[c1] = '\0';
|
|
str[c1] = '\0';
|
|
|
|
|