Browse code

Escape tilde character on Windows

git-svn: trunk@2572

Nigel Horne authored on 2006/12/22 17:13:46
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Fri Dec 22 08:12:26 GMT 2006 (njh)
2
+----------------------------------
3
+  * libclamav/blob.c:	Escape tilde character on Windows (bug 207)
4
+
1 5
 Thu Dec 21 19:41:55 CET 2006 (acab)
2 6
 -----------------------------------
3 7
   * sigtool: Remove duplicate help message (closes bb#203)
... ...
@@ -16,7 +16,7 @@
16 16
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 17
  *  MA 02110-1301, USA.
18 18
  */
19
-static	char	const	rcsid[] = "$Id: blob.c,v 1.59 2006/12/13 13:50:51 njh Exp $";
19
+static	char	const	rcsid[] = "$Id: blob.c,v 1.60 2006/12/22 08:13:46 njh Exp $";
20 20
 
21 21
 #if HAVE_CONFIG_H
22 22
 #include "clamav-config.h"
... ...
@@ -569,7 +569,7 @@ sanitiseName(char *name)
569 569
 #endif
570 570
 		/* Also check for tab - "Heinz Martin" <Martin@hemag.ch> */
571 571
 #if	defined(MSDOS) || defined(C_CYGWIN) || defined(C_WINDOWS) || defined(C_OS2)
572
-		if(strchr("%/*?<>|\\\"+=,;:\t ", *name))
572
+		if(strchr("%/*?<>|\\\"+=,;:\t ~", *name))
573 573
 #else
574 574
 		if(*name == '/')
575 575
 #endif