diff options
author | rsc <devnull@localhost> | 2005-02-18 18:28:00 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-02-18 18:28:00 +0000 |
commit | 3e1960ce9ea541b4bb70509c7b1915e88bfe69ed (patch) | |
tree | c33175ee4fe4dfb4b6c4a7369826e7e40aaed359 /src/cmd/vac | |
parent | 53e2a4c62e0662d3b72bd0f8807f7b2459684ae1 (diff) | |
download | plan9port-3e1960ce9ea541b4bb70509c7b1915e88bfe69ed.tar.gz plan9port-3e1960ce9ea541b4bb70509c7b1915e88bfe69ed.tar.bz2 plan9port-3e1960ce9ea541b4bb70509c7b1915e88bfe69ed.zip |
fix -d from lucho
Diffstat (limited to 'src/cmd/vac')
-rw-r--r-- | src/cmd/vac/vac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/vac/vac.c b/src/cmd/vac/vac.c index 93add14d..ff977235 100644 --- a/src/cmd/vac/vac.c +++ b/src/cmd/vac/vac.c @@ -474,7 +474,7 @@ sha1check(u8int *score, uchar *buf, int n) { char score2[VtScoreSize]; - sha1(buf, n, score, nil); + sha1(buf, n, score2, nil); if(memcmp(score, score2, VtScoreSize) == 0) return 0; return -1; @@ -567,7 +567,7 @@ if(0) fprint(2, "vacData: %s: %ld\n", lname, block); warn("file truncated due to read error: %s: %r", lname); if(n <= 0) break; - if(vf != nil && vacfileblockscore(vf, block, score) && sha1check(score, buf, n)>=0) { + if(vf != nil && vacfileblockscore(vf, block, score)>=0 && sha1check(score, buf, n)>=0) { stats.sdata++; sinkwritescore(sink, score, n); } else |