Browse code

fix typos

git-svn: trunk@2139

Tomasz Kojm authored on 2006/07/29 02:51:14
Showing 3 changed files
... ...
@@ -1,3 +1,7 @@
1
+Fri Jul 28 19:47:39 CEST 2006 (tk)
2
+----------------------------------
3
+  * libclamav: fix a couple of typos in debug messages spotted by NJH
4
+
1 5
 Fri Jul 28 01:08:01 CEST 2006 (tk)
2 6
 ----------------------------------
3 7
   * freshclam/manager.c: delete patch after applying
... ...
@@ -61,7 +61,7 @@ int cli_ac_addpatt(struct cli_matcher *root, struct cli_ac_patt *pattern)
61 61
 	if(!next) {
62 62
 	    next = (struct cli_ac_node *) cli_calloc(1, sizeof(struct cli_ac_node));
63 63
 	    if(!next) {
64
-		cli_dbgmsg("Unable to allocate pattern node (%d)\n", sizeof(struct cli_matcher));
64
+		cli_dbgmsg("Unable to allocate AC node (%d)\n", sizeof(struct cli_ac_node));
65 65
 		return CL_EMEM;
66 66
 	    }
67 67
 
... ...
@@ -393,7 +393,7 @@ int cli_parse_add(struct cli_matcher *root, const char *virname, const char *hex
393 393
 
394 394
 	for(i = 1; i <= parts; i++) {
395 395
 	    if((pt = cli_strtok(hexsig, i - 1, "*")) == NULL) {
396
-		cli_errmsg("Can't extract part %d of partial signature.\n", i + 1);
396
+		cli_errmsg("Can't extract part %d of partial signature.\n", i);
397 397
 		return CL_EMALFDB;
398 398
 	    }
399 399