Skip to content

Commit

Permalink
#XD-676 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
morj committed Feb 27, 2018
1 parent 7a7132f commit a3f5749
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class StreamCipherInputStream(input: InputStream, private val cipherGetter: () -
val b = bytes.notNull { "Can't read into null array" }
val read = super.read(b, off, len)
if (read > 0) {
for (i in off until read) {
for (i in off until read + off) {
b[i] = cipher.crypt(b[i])
}
position += read
Expand Down

0 comments on commit a3f5749

Please sign in to comment.