From bab001d496c638757279f8033c830348fa47074c Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sun, 26 May 2002 11:18:33 +0000 Subject: [PATCH] Added timeout for virus scanning --- mbfido/virscan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mbfido/virscan.c b/mbfido/virscan.c index 8fe4ba7b..f21d5396 100644 --- a/mbfido/virscan.c +++ b/mbfido/virscan.c @@ -54,6 +54,7 @@ int VirScan(void) while (fread(&virscan, virscanhdr.recsize, 1, fp) == 1) { cmd = NULL; if (virscan.available) { + Altime(3600); cmd = xstrcpy(virscan.scanner); cmd = xstrcat(cmd, (char *)" "); cmd = xstrcat(cmd, virscan.options); @@ -63,6 +64,7 @@ int VirScan(void) rc = TRUE; } free(cmd); + Altime(0); Nopper(); } }