mirror of https://github.com/apache/poi.git
Bug 63431 -- unbug ChunkedCipherInputStream's read()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859251 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b77c010743
commit
b3da2d5e8a
|
@ -82,8 +82,7 @@ public abstract class ChunkedCipherInputStream extends LittleEndianInputStream {
|
||||||
@Override
|
@Override
|
||||||
public int read() throws IOException {
|
public int read() throws IOException {
|
||||||
byte[] b = { 0 };
|
byte[] b = { 0 };
|
||||||
// FIXME: compare against -1 or 1? (bug 59893)
|
return (read(b) == 1) ? b[0] : -1;
|
||||||
return (read(b) == 1) ? -1 : b[0];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// do not implement! -> recursion
|
// do not implement! -> recursion
|
||||||
|
|
Loading…
Reference in New Issue