java/src/org/openantivirus/engine/credo StringsParser.java,1.5,1.6

Kurt Huwig <[email protected]> Thu, 20 May 2004 13:19:48 +0000
Newsgroups gmane.comp.security.virus.openantivirus.cvs
Message-ID <[email protected]>
Update of /cvsroot/openantivirus/java/src/org/openantivirus/engine/credo
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8873/src/org/openantivirus/engine/credo

Modified Files:
	StringsParser.java 
Log Message:
Improved memory usage

Index: StringsParser.java
===================================================================
RCS file: /cvsroot/openantivirus/java/src/org/openantivirus/engine/credo/StringsParser.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- StringsParser.java	20 May 2004 13:04:49 -0000	1.5
+++ StringsParser.java	20 May 2004 13:19:45 -0000	1.6
@@ -58,7 +58,8 @@
             }
             
             final int offsetStart = sLine.lastIndexOf('[');
-            final String sVirusName = sLine.substring(0, offsetStart);
+            final String sVirusName =
+                new String(sLine.substring(0, offsetStart));
             final String sPattern   = sLine.substring(equalsPos + 1);
             
             try {



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click