Index: src/java/org/archive/io/ArchiveRecord.java
===================================================================
--- src/java/org/archive/io/ArchiveRecord.java	(revision 6620)
+++ src/java/org/archive/io/ArchiveRecord.java	(working copy)
@@ -189,8 +189,8 @@
 			if (this.digest != null) {
 				this.digest.update((byte) c);
 			}
+        		incrementPosition();
 		}
-		incrementPosition();
 		return c;
 	}
 
@@ -212,8 +212,8 @@
 			if (this.digest != null && read >= 0) {
 				this.digest.update(b, offset, read);
 			}
+        		incrementPosition(read);
 		}
-		incrementPosition(read);
 		return read;
 	}
 

Patch for reading at EOF bug.
Patch for reading at EOF bug.


git-svn-id: 293778eaa97c8c94097d610b1bd5133a8f478f36@9065 4f837ed2-42f5-46e7-a7a5-fa17313484d4
