Author: toad
Date: 2009-01-27 18:53:41 +0000 (Tue, 27 Jan 2009)
New Revision: 25329

Modified:
   branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucket.java
Log:
DOH!


Modified: 
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucket.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucket.java  
2009-01-27 18:53:31 UTC (rev 25328)
+++ branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucket.java  
2009-01-27 18:53:41 UTC (rev 25329)
@@ -83,7 +83,7 @@
                                long max;
                                synchronized(PersistentBlobTempBucket.this) {
                                        if(freed) throw new IOException("Bucket 
freed during read");
-                                       max = Math.max(blockSize, size);
+                                       max = Math.min(blockSize, size);
                                }
                                if(bufOffset < 0) return -1; // throw new 
EOFException() ???
                                if(offset + length >= max)

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to