9083 replace regex implementation with tre
@@ -1642,11 +1642,11 @@ *dstp = dst = (wchar_t *)malloc(len * sizeof (wchar_t)); if (dst == NULL) return (REG_ESPACE); if (rp == NULL || rpl == NULL || src == NULL || dst == NULL) - return (REG_EFATAL); + return (REG_BADPAT); glob = 0; /* match count */ ip = src; /* source position */ op = dst; /* destination position */ end = dst + len;