samba-vscan/global vscan-filetype.c,1.3.2.5,1.3.2.6

[email protected]
Newsgroups gmane.comp.security.virus.openantivirus.cvs
Message-ID <[email protected]>
Update of /cvsroot/openantivirus/samba-vscan/global
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3635

Modified Files:
      Tag: VSCAN_0_3
	vscan-filetype.c 
Log Message:
buigfix, make it acutally compile


Index: vscan-filetype.c
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/global/vscan-filetype.c,v
retrieving revision 1.3.2.5
retrieving revision 1.3.2.6
diff -u -d -r1.3.2.5 -r1.3.2.6
--- vscan-filetype.c	26 Feb 2004 17:17:00 -0000	1.3.2.5
+++ vscan-filetype.c	27 Feb 2004 09:27:29 -0000	1.3.2.6
@@ -112,7 +112,8 @@
 		pstring exclude;
 		const char* p; /* needed to avoid compiler warning */
 		pstring ft_string, filetype_string;
-
+		char* p_ft;
+		
 
 		if ( !filetype_init_magic ) {
 			DEBUG(1, ("libmagic init has failed or exclude list is empty - feature disabled\n"));
@@ -127,7 +128,9 @@
 			return -1;
 		} /* end if */ 
 		trim_string(ft_string, " ", " ");
-		filetype_string = strsep(&ft_string, ";");
+		/* hack alert ... */
+		p_ft = ft_string;
+		pstrcpy(filetype_string, strsep(&p_ft, ";"));
 		DEBUG(1, ("file type of file %s is %s\n", fname, filetype_string));	
 
 		/* next_token modifies input list, so copy it */



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.