diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-15 09:31:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-15 09:31:28 +0200 |
commit | 396da96d27077ffb0ce670dc28ed24c3f7427e06 (patch) | |
tree | 2144842f3e54aa3043dab93f78abd9e8985f1b7e /xmerge | |
parent | 06907141b9f47df4c179be4c0d06b62fecf74528 (diff) |
cid#1326117 Unchecked return value
Change-Id: Ieaa1875a8731b5339d4ebf032b3f724ff889903f
Diffstat (limited to 'xmerge')
-rw-r--r-- | xmerge/source/xmerge/java/org/openoffice/xmerge/converter/palm/PdbDecoder.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/palm/PdbDecoder.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/palm/PdbDecoder.java index bbd892a2f2d2..3518feb29931 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/palm/PdbDecoder.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/palm/PdbDecoder.java @@ -107,7 +107,10 @@ public final class PdbDecoder { // last record dis.reset(); int len = dis.available() - recOffset[lastIndex]; - dis.skip(recOffset[lastIndex]); + int nBytesToSkip = recOffset[lastIndex]; + while (nBytesToSkip > 0) { + nBytesToSkip -= dis.skip(nBytesToSkip); + } byte[] bytes = new byte[len]; dis.readFully(bytes); recArray[lastIndex] = new Record(bytes, recAttrs[lastIndex]); |