Browse code

clamdscan: fix name parsing in normal mode (bb#2328)

Tomasz Kojm authored on 2010/10/18 18:31:43
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Mon Oct 18 11:30:01 CEST 2010 (tk)
2
+----------------------------------
3
+ * clamdscan: fix name parsing in normal mode (bb#2328)
4
+
1 5
 Mon Oct 18 11:10:14 CEST 2010 (tk)
2 6
 ----------------------------------
3 7
  * libclamav/others.h: bump f-level
... ...
@@ -327,6 +327,7 @@ int dsresult(int sockd, int scantype, const char *filename, int *printok, int *e
327 327
 		logg("Failed to parse reply\n");
328 328
 		return -1;
329 329
 	    } else if(!memcmp(eol - 7, " FOUND", 6)) {
330
+		*(eol - 7) = 0;
330 331
 		*printok = 0;
331 332
 		infected++;
332 333
 		if(filename) {