Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ao/check-resolve-ref-unsafe-result'
[gitweb.git]
/
csum-file.c
diff --git
a/csum-file.c
b/csum-file.c
index a172199e44bf370cd66ee7073f5a2228fd9679ef..2adae04073816a781d01d85433d8d8922baafd7f 100644
(file)
--- a/
csum-file.c
+++ b/
csum-file.c
@@
-19,7
+19,7
@@
static void flush(struct sha1file *f, const void *buf, unsigned int count)
if (ret < 0)
die_errno("%s: sha1 file read error", f->name);
- if (ret
<
count)
+ if (ret
!=
count)
die("%s: sha1 file truncated", f->name);
if (memcmp(buf, check_buffer, count))
die("sha1 file '%s' validation error", f->name);