You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@abdera.apache.org by jm...@apache.org on 2009/05/05 01:00:30 UTC

svn commit: r771487 - /abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/text/io/PeekAheadInputStream.java

Author: jmsnell
Date: Mon May  4 23:00:30 2009
New Revision: 771487

URL: http://svn.apache.org/viewvc?rev=771487&view=rev
Log:
Fix for https://issues.apache.org/jira/browse/ABDERA-222

The PeekAheadInputStream was writing too much back to the buffer, which introduces 0x0 chars to the stream

Modified:
    abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/text/io/PeekAheadInputStream.java

Modified: abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/text/io/PeekAheadInputStream.java
URL: http://svn.apache.org/viewvc/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/text/io/PeekAheadInputStream.java?rev=771487&r1=771486&r2=771487&view=diff
==============================================================================
--- abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/text/io/PeekAheadInputStream.java (original)
+++ abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/text/io/PeekAheadInputStream.java Mon May  4 23:00:30 2009
@@ -68,7 +68,7 @@
     int len) 
       throws IOException {
     int r = read(buf, off, len);
-    unread(buf,off,len);
+    unread(buf,off,r);
     return r;
   }