Author: toad
Date: 2006-06-09 21:09:31 +0000 (Fri, 09 Jun 2006)
New Revision: 9108

Modified:
   trunk/freenet/src/freenet/node/Version.java
   trunk/freenet/src/freenet/support/io/LineReadingInputStream.java
Log:
792: Doh. Real fix for startup failures. :)

Modified: trunk/freenet/src/freenet/node/Version.java
===================================================================
--- trunk/freenet/src/freenet/node/Version.java 2006-06-09 21:05:43 UTC (rev 
9107)
+++ trunk/freenet/src/freenet/node/Version.java 2006-06-09 21:09:31 UTC (rev 
9108)
@@ -18,7 +18,7 @@
        public static final String protocolVersion = "1.0";

        /** The build number of the current revision */
-       private static final int buildNumber = 791;
+       private static final int buildNumber = 792;

        /** Oldest build of Fred we will talk to */
        private static final int lastGoodBuild = 765;

Modified: trunk/freenet/src/freenet/support/io/LineReadingInputStream.java
===================================================================
--- trunk/freenet/src/freenet/support/io/LineReadingInputStream.java    
2006-06-09 21:05:43 UTC (rev 9107)
+++ trunk/freenet/src/freenet/support/io/LineReadingInputStream.java    
2006-06-09 21:09:31 UTC (rev 9108)
@@ -35,7 +35,7 @@
                                return new String(buf, 0, ctr, utf ? "UTF-8" : 
"ISO-8859-1");
                        }
                        if(ctr >= buf.length) {
-                               if(buf.length == bufferSize) throw new 
TooLongException();
+                               if(buf.length == maxLength) throw new 
TooLongException();
                                byte[] newBuf = new byte[Math.min(buf.length * 
2, bufferSize)];
                                System.arraycopy(buf, 0, newBuf, 0, buf.length);
                                buf = newBuf;


Reply via email to