jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpfis...@apache.org
Subject svn commit: r1152176 - /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/util/MicroKernelInputStream.java
Date Fri, 29 Jul 2011 11:46:47 GMT
Author: dpfister
Date: Fri Jul 29 11:46:47 2011
New Revision: 1152176

URL: http://svn.apache.org/viewvc?rev=1152176&view=rev
Log:
#0000 - Wrong comparison against length in method arguments: should be length returned by
MicroKernel's read

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/util/MicroKernelInputStream.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/util/MicroKernelInputStream.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/util/MicroKernelInputStream.java?rev=1152176&r1=1152175&r2=1152176&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/util/MicroKernelInputStream.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/util/MicroKernelInputStream.java
Fri Jul 29 11:46:47 2011
@@ -37,7 +37,7 @@ public class MicroKernelInputStream exte
 
     public int read(byte[] b, int off, int len) {
         int l = mk.read(id, pos, b, off, len);
-        if (len < 0) {
+        if (l < 0) {
             return l;
         }
         pos += l;



Mime
View raw message