Browse code

--leave-temps didn't work without --debug (bb#874)

git-svn: trunk@3702

Tomasz Kojm authored on 2008/03/10 22:47:04
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Mon Mar 10 13:54:42 CET 2008 (tk)
2
+---------------------------------
3
+  * libclamav/pdf.c: --leave-temps didn't work without --debug (bb#874)
4
+
1 5
 Sun Mar  9 12:28:22 EET 2008 (edwin)
2 6
 ------------------------------------
3 7
   * libclamav/regex/regex2.h: avoid passing out-of-range values to isalnum (thanks Nigel)
... ...
@@ -474,7 +474,8 @@ cli_pdf(const char *dir, int desc, cli_ctx *ctx)
474 474
 		}
475 475
 
476 476
 		if (rc == CL_CLEAN) {
477
-			cli_dbgmsg("cli_pdf: extracted file %u to %s\n", files++, fullname);
477
+			cli_dbgmsg("cli_pdf: extracted file %u to %s\n", files, fullname);
478
+			files++;
478 479
 	
479 480
 			lseek(fout, 0, SEEK_SET);
480 481
 			if((md5digest = cli_md5digest(fout))) {