diff --git a/src/gateAs.cc b/src/gateAs.cc index 962347d..c3233e0 100644 --- a/src/gateAs.cc +++ b/src/gateAs.cc @@ -391,7 +391,7 @@ gateAsEntry* gateAs::findEntryInList(const char* pv, gateAsList& list) const int len = (int) strlen(pv); #ifdef USE_PCRE pi->substrings=pcre_exec(pi->pat_buff, NULL, - pv, len, 0, PCRE_ANCHORED, pi->ovector, 30); + pv, len, 0, PCRE_ANCHORED, pi->ovector, pi->ovecsize); if((pi->substrings>=0 && pi->ovector[1] == len) #ifdef USE_NEG_REGEXP ^ pi->negate_pattern @@ -411,7 +411,6 @@ gateAsEntry* gateAs::findEntryInList(const char* pv, gateAsList& list) const int gateAs::readPvList(const char* lfile) { - int lev; int line=0; FILE* fd; char inbuf[GATE_MAX_PVLIST_LINE_LENGTH]; @@ -448,7 +447,7 @@ int gateAs::readPvList(const char* lfile) // Read all PV file lines while(fgets(inbuf,sizeof(inbuf),fd)) { - + int lev=1; ++line; pattern=rname=hname=NULL;