Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Cleanup unpack_object_header to use only offsets.
[gitweb.git]
/
fsck-objects.c
diff --git
a/fsck-objects.c
b/fsck-objects.c
index 31e00d84b30f95c713b3dc6a654b4ef8459c6729..ae0ec8d039cfce698daa8a9f44c7f49b932373c8 100644
(file)
--- a/
fsck-objects.c
+++ b/
fsck-objects.c
@@
-356,7
+356,7
@@
static void add_sha1_list(unsigned char *sha1, unsigned long ino)
int nr;
entry->ino = ino;
-
memcpy(entry->sha1, sha1, 20
);
+
hashcpy(entry->sha1, sha1
);
nr = sha1_list.nr;
if (nr == MAX_SHA1_ENTRIES) {
fsck_sha1_list();