diff --git a/src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java b/src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java index 40b0e28ddb..5ad77ddd62 100644 --- a/src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java +++ b/src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java @@ -82,8 +82,7 @@ public abstract class ChunkedCipherInputStream extends LittleEndianInputStream { @Override public int read() throws IOException { byte[] b = { 0 }; - // FIXME: compare against -1 or 1? (bug 59893) - return (read(b) == 1) ? -1 : b[0]; + return (read(b) == 1) ? b[0] : -1; } // do not implement! -> recursion