java/src/org/openantivirus/engine/censor/matcharray MatchArrayCensor.java,1.3,1.4
Kurt Huwig <[email protected]> Thu, 20 May 2004 13:34:35 +0000
| Newsgroups | gmane.comp.security.virus.openantivirus.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openantivirus/java/src/org/openantivirus/engine/censor/matcharray
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11620/src/org/openantivirus/engine/censor/matcharray
Modified Files:
MatchArrayCensor.java
Log Message:
Speed improvements
Index: MatchArrayCensor.java
===================================================================
RCS file: /cvsroot/openantivirus/java/src/org/openantivirus/engine/censor/matcharray/MatchArrayCensor.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- MatchArrayCensor.java 20 May 2004 13:04:06 -0000 1.3
+++ MatchArrayCensor.java 20 May 2004 13:34:33 -0000 1.4
@@ -103,7 +103,9 @@
iBufferPos = iReadAheadPos;
iReadAheadPos += BUFFER_SIZE;
- iReadAheadPos %= 3 * BUFFER_SIZE;
+ if (iReadAheadPos >= 3 * BUFFER_SIZE) {
+ iReadAheadPos -= 3 * BUFFER_SIZE;
+ }
fileOffset += BUFFER_SIZE;
} while (iLength == BUFFER_SIZE);
-------------------------------------------------------
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