git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4678
91ce42f0-d328-0410-95d8-
f526ca767f89
{
success = false; /* use this.success to known if it's ok */
int flen = strlen(fname);
- int rc = regexec(&preg, fname, RE_NREGS, regs, 0);
+ int rc = regexec(&preg, fname, BREG_NREGS, regs, 0);
if (rc == REG_NOMATCH) {
Dmsg0(500, "bregexp: regex mismatch\n");
* free_bregexp(breg);
*/
+#define BREG_NREGS 11
+
/*
* Structure for BREGEXP ressource
*/
POOLMEM *expr; /* search epression */
POOLMEM *subst; /* substitution */
regex_t preg; /* regex_t result of regcomp() */
- regmatch_t regs[RE_NREGS]; /* contains match */
+ regmatch_t regs[BREG_NREGS]; /* contains match */
char *eor; /* end of regexp in expr */
char *return_fname(const char *fname, int len); /* return fname as result */