diff options
Diffstat (limited to 'libjava/java/io')
-rw-r--r-- | libjava/java/io/FileInputStream.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libjava/java/io/FileInputStream.java b/libjava/java/io/FileInputStream.java index 9d0d013..6a02d2b 100644 --- a/libjava/java/io/FileInputStream.java +++ b/libjava/java/io/FileInputStream.java @@ -88,6 +88,8 @@ public class FileInputStream extends InputStream public long skip(long n) throws IOException { - return n <= 0 ? 0 : fd.seek(n, FileDescriptor.CUR, true); + long startPos = fd.getFilePointer(); + long endPos = fd.seek(n, FileDescriptor.CUR, true); + return endPos - startPos; } } |