Author: nextgens
Date: 2009-01-30 15:21:49 +0000 (Fri, 30 Jan 2009)
New Revision: 25397

Modified:
   trunk/freenet/src/freenet/support/io/LineReadingInputStream.java
Log:
doh!

Modified: trunk/freenet/src/freenet/support/io/LineReadingInputStream.java
===================================================================
--- trunk/freenet/src/freenet/support/io/LineReadingInputStream.java    
2009-01-30 15:08:15 UTC (rev 25396)
+++ trunk/freenet/src/freenet/support/io/LineReadingInputStream.java    
2009-01-30 15:21:49 UTC (rev 25397)
@@ -35,7 +35,7 @@
                int ctr = 0;
                mark(maxLength + 2); // in case we have both a \r and a \n
                while(true) {
-                       int x = read(buf, ctr, buf.length - ctr);
+                       int x = read(buf, ctr, Math.min(1, buf.length - ctr));
                        if(x == -1) {
                                if(ctr == 0)
                                        return null;

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

Reply via email to