Author: nextgens
Date: 2008-08-17 18:35:16 +0000 (Sun, 17 Aug 2008)
New Revision: 21978

Modified:
   trunk/freenet/src/freenet/support/io/LineReadingInputStream.java
Log:
even better that way

Modified: trunk/freenet/src/freenet/support/io/LineReadingInputStream.java
===================================================================
--- trunk/freenet/src/freenet/support/io/LineReadingInputStream.java    
2008-08-17 18:31:15 UTC (rev 21977)
+++ trunk/freenet/src/freenet/support/io/LineReadingInputStream.java    
2008-08-17 18:35:16 UTC (rev 21978)
@@ -56,7 +56,7 @@
                                if(ctr >= maxLength)
                                        throw new TooLongException("We reached 
maxLength="+maxLength+ " parsing\n "+HexUtil.bytesToHex(buf, 0, ctr) + "\n" + 
new String(buf, 0, ctr, utf ? "UTF-8" : "ISO-8859-1"));
                        }
-                       byte[] newBuf = new byte[Math.min(buf.length * 2, 
maxLength)];
+                       byte[] newBuf = new byte[buf.length * 2];
                        System.arraycopy(buf, 0, newBuf, 0, buf.length);
                        buf = newBuf;
                }


Reply via email to