Browse code

fix -pedantic warning.

git-svn: trunk@3587

Török Edvin authored on 2008/02/06 21:24:58
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Feb  6 14:07:45 EET 2008 (edwin)
2
+------------------------------------
3
+  * libclamav/regex_list.c: fix -pedantic warning.
4
+
1 5
 Tue Feb  5 22:51:39 EET 2008 (edwin)
2 6
 ------------------------------------
3 7
   * configure.in, configure: enhance CLI_ISCONTAINED checks, reorder checks
... ...
@@ -314,12 +314,12 @@ int regex_list_match(struct regex_matcher* matcher,char* real_url,const char* di
314 314
 						if(real_len >= match_len + 1) {
315 315
 							const size_t pos = real_len - match_len - 1;
316 316
 							if(real_url[pos] != '.') {
317
-								cli_dbgmsg("No dot here:%s\n",real_url+pos);
318 317
 								/* we need to shift left, and insert a '.'
319 318
 								 * we have an extra '.' at the beginning inserted by get_host to have room,
320 319
 								 * orig_real_url has to be used here, 
321 320
 								 * because we want to overwrite that extra '.' */
322 321
 								size_t orig_real_len = strlen(orig_real_url);
322
+								cli_dbgmsg("No dot here:%s\n",real_url+pos);
323 323
 								real_url = orig_real_url;
324 324
 								memmove(real_url, real_url+1, orig_real_len-match_len-1);
325 325
 								real_url[orig_real_len-match_len-1]='.';