Browse Source

* define misc limits in filter.h

master
Alex 'AdUser' Z 8 years ago
parent
commit
2626c0f145
  1. 2
      src/filters/filter.h
  2. 2
      src/filters/pcre.c
  3. 2
      src/filters/preg.c

2
src/filters/filter.h

@ -6,6 +6,8 @@
*/
#include <stdbool.h>
#define ID_MAX 32
#define PATTERN_MAX 256
#define HOST_TOKEN "<HOST>"
typedef struct _config cfg_t;

2
src/filters/pcre.c

@ -24,7 +24,7 @@ typedef struct f2b_regex_t {
} f2b_regex_t;
struct _config {
char id[32];
char id[ID_MAX];
char error[256];
bool icase;
bool study;

2
src/filters/preg.c

@ -24,7 +24,7 @@ typedef struct f2b_regex_t {
} f2b_regex_t;
struct _config {
char id[32];
char id[ID_MAX];
char error[256];
bool icase;
f2b_regex_t *regexps;

Loading…
Cancel
Save