file pointer wrong after readFully in SMBRandomAccessFile

Richard Heap <[email protected]> Tue, 26 Feb 2013 10:39:21 -0500
Newsgroups gmane.network.samba.java
Message-ID <[email protected]>
Hi Mike et al

I believe that the file pointer is being advanced too far following a 
read fully.

For example,
       SmbRandomAccessFile raf = new SmbRandomAccessFile(new 
SmbFile("smb://username:pwd@server/share/foo/bar/file.dat"), "r");
       raf.readFully(new byte[512]);
       System.out.println(raf.getFilePointer());
reads 512 bytes but prints 1024.A subsequent read takes place at 1024 
instead of 512.

It looks like readFully may be incrementing the file pointer as well as 
read(), which is called by readFully, causing a double increment.

Best Regards and thanks again for jcifs.
Richard