Author: nextgens
Date: 2009-01-30 15:43:34 +0000 (Fri, 30 Jan 2009)
New Revision: 25398
Modified:
trunk/freenet/src/freenet/support/io/LineReadingInputStream.java
Log:
doh2!
Modified: trunk/freenet/src/freenet/support/io/LineReadingInputStream.java
===================================================================
--- trunk/freenet/src/freenet/support/io/LineReadingInputStream.java
2009-01-30 15:21:49 UTC (rev 25397)
+++ trunk/freenet/src/freenet/support/io/LineReadingInputStream.java
2009-01-30 15:43:34 UTC (rev 25398)
@@ -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, Math.min(1, buf.length - ctr));
+ int x = read(buf, ctr, Math.max(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