diff options
Diffstat (limited to 'src/cmd/venti/copy.c')
-rw-r--r-- | src/cmd/venti/copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/venti/copy.c b/src/cmd/venti/copy.c index 8c791f2a..d6d770bc 100644 --- a/src/cmd/venti/copy.c +++ b/src/cmd/venti/copy.c @@ -136,7 +136,7 @@ walk(uchar score[VtScoreSize], uint type, int base, int depth) break; case VtDirType: - for(i=0; i<n/VtEntrySize; i++){ + for(i=0; i*VtEntrySize < n; i++){ if(vtentryunpack(&e, buf, i) < 0){ fprint(2, "warning: could not unpack entry #%d in %V %d\n", i, score, type); continue; |