compatibility with new matcher extension

git-svn: trunk@3590
This commit is contained in:
Tomasz Kojm
2008-02-06 20:48:34 +00:00
parent c3671221da
commit 6b656d3608
2 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
Wed Feb 6 21:30:55 CET 2008 (tk)
---------------------------------
* libclamav/regex_list.c: compatibility with new matcher extension
Wed Feb 6 20:36:05 EET 2008 (edwin)
------------------------------------
* contrib/entitynorm/, libclamav/hashtab.[ch], readdb.c, matcher.h, entitylist.h, encoding_aliases.h:

View File

@@ -60,6 +60,7 @@
#include "others.h"
#include "regex_list.h"
#include "matcher-ac.h"
#include "matcher.h"
#include "str.h"
#include "readdb.h"
@@ -462,6 +463,7 @@ static int add_regex_list_element(struct cli_matcher* root,const char* pattern,c
new->offset = 0;
new->target = 0;
new->length = len;
new->ch[0] = new->ch[1] |= CLI_MATCH_IGNORE;
if(new->length > root->maxpatlen)
root->maxpatlen = new->length;