abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r771487 - /abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/text/io/PeekAheadInputStream.java
Date Mon, 04 May 2009 23:00:30 GMT
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;
   }
 



Mime
View raw message