Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'lt/refs' into jc/for-each-ref-with-lt-refs
[gitweb.git]
/
csum-file.c
diff --git
a/csum-file.c
b/csum-file.c
index e2278897d08b750f383ae5bb2ac7e738a99a7ae5..b7174c6c056c5a8f2a800ecbcb3cdf304c0bfc3f 100644
(file)
--- a/
csum-file.c
+++ b/
csum-file.c
@@
-38,7
+38,7
@@
int sha1close(struct sha1file *f, unsigned char *result, int update)
}
SHA1_Final(f->buffer, &f->ctx);
if (result)
-
memcpy(result, f->buffer, 20
);
+
hashcpy(result, f->buffer
);
if (update)
sha1flush(f, 20);
if (close(f->fd))