git-svn: trunk@1081

Nigel Horne authored on 2004/11/09 22:33:38
Showing 1 changed files
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: mbox.c,v $
20
+ * Revision 1.172  2004/11/09 13:33:38  nigelhorne
21
+ * Tidy
22
+ *
20 23
  * Revision 1.171  2004/11/09 12:24:32  nigelhorne
21 24
  * Better handling of mail-follow-urls when CURL is not installed
22 25
  *
... ...
@@ -501,7 +504,7 @@
501 501
  * Compilable under SCO; removed duplicate code with message.c
502 502
  *
503 503
  */
504
-static	char	const	rcsid[] = "$Id: mbox.c,v 1.171 2004/11/09 12:24:32 nigelhorne Exp $";
504
+static	char	const	rcsid[] = "$Id: mbox.c,v 1.172 2004/11/09 13:33:38 nigelhorne Exp $";
505 505
 
506 506
 #if HAVE_CONFIG_H
507 507
 #include "clamav-config.h"
... ...
@@ -3058,6 +3061,7 @@ checkURLs(message *m, const char *dir)
3058 3058
 			(void)tableInsert(t, url, 1);
3059 3059
 			cli_dbgmsg("Downloading URL %s to be scanned\n", url);
3060 3060
 			strncpy(name, url, sizeof(name) - 1);
3061
+			name[sizeof(name) - 1] = '\0';
3061 3062
 			for(ptr = name; *ptr; ptr++)
3062 3063
 				if(*ptr == '/')
3063 3064
 					*ptr = '_';