Merge "Use readFully() instead of read()"

This commit is contained in:
Shawn Pearce 2010-10-29 10:47:26 -04:00 committed by Code Review
commit 6bddae5775
1 changed files with 1 additions and 1 deletions

View File

@ -599,7 +599,7 @@ private void onOpenPack() throws IOException {
JGitText.get().packObjectCountMismatch, packCnt, idx.getObjectCount(), getPackFile()));
fd.seek(length - 20);
fd.read(buf, 0, 20);
fd.readFully(buf, 0, 20);
if (!Arrays.equals(buf, packChecksum))
throw new PackMismatchException(MessageFormat.format(
JGitText.get().packObjectCountMismatch