git-svn: trunk@2444
Tomasz Kojm authored on 2006/10/29 00:34:40... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Sat Oct 28 17:33:06 CEST 2006 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/regex_list.c: .pdb/.wdb files now use colon as delimiter |
|
4 |
+ |
|
1 | 5 |
Sat Oct 28 15:52:42 CEST 2006 (tk) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav/elf.c: make the code reentrant (closes bug#57) |
... | ... |
@@ -19,6 +19,9 @@ |
19 | 19 |
* MA 02110-1301, USA. |
20 | 20 |
* |
21 | 21 |
* $Log: regex_list.c,v $ |
22 |
+ * Revision 1.12 2006/10/28 15:34:40 tkojm |
|
23 |
+ * .pdb/.wdb files now use colon as delimiter |
|
24 |
+ * |
|
22 | 25 |
* Revision 1.11 2006/10/15 19:16:33 tkojm |
23 | 26 |
* allow loading multiple .pdb/.wdb files |
24 | 27 |
* |
... | ... |
@@ -348,7 +351,7 @@ int regex_list_match(struct regex_matcher* matcher,const char* real_url,const ch |
348 | 348 |
return CL_EMEM; |
349 | 349 |
|
350 | 350 |
strncpy(buffer,real_url,real_len); |
351 |
- buffer[real_len]= (!is_whitelist && hostOnly) ? '\0' : ' '; |
|
351 |
+ buffer[real_len]= (!is_whitelist && hostOnly) ? '\0' : ':'; |
|
352 | 352 |
if(!hostOnly || is_whitelist) { |
353 | 353 |
strncpy(buffer+real_len+1,display_url,display_len); |
354 | 354 |
buffer[buffer_len]=0; |
... | ... |
@@ -557,7 +560,7 @@ int load_regex_matcher(struct regex_matcher* matcher,FILE* fd,unsigned int optio |
557 | 557 |
cli_chomp(buffer); |
558 | 558 |
if(!*buffer) |
559 | 559 |
continue;/* skip empty lines */ |
560 |
- pattern = strchr(buffer,' '); |
|
560 |
+ pattern = strchr(buffer,':'); |
|
561 | 561 |
if(!pattern) { |
562 | 562 |
cli_errmsg("Malformed regex list line %d\n",line); |
563 | 563 |
fatal_error(matcher); |