Fix array size for parsing .ldb tokens.

Looks like a wrong merge of the bytecode branch, str_tokenize was updated to use
LDB_TOKENS+1, but not the variable's declaration!
0.96
Török Edvin 16 years ago
parent 4168b01087
commit 1d406931e2
  1. 2
      libclamav/readdb.c

@ -1109,7 +1109,7 @@ static int load_oneldb(char *buffer, int chkpua, int chkign, struct cl_engine *e
{
const char *sig, *virname, *offset, *logic;
struct cli_ac_lsig **newtable, *lsig;
char *tokens[LDB_TOKENS], *pt;
char *tokens[LDB_TOKENS+1], *pt;
int i, subsigs, tokens_count;
unsigned short target = 0;
struct cli_matcher *root;

Loading…
Cancel
Save