Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
cache: make oidcpy always copy GIT_MAX_RAWSZ bytes
[gitweb.git]
/
cache.h
diff --git
a/cache.h
b/cache.h
index ca36b44ee0b5851f837616c322a201ac420a90d2..8b8c6a1a2a0663d25565924079889d587868645b 100644
(file)
--- a/
cache.h
+++ b/
cache.h
@@
-1072,7
+1072,7
@@
static inline void hashcpy(unsigned char *sha_dst, const unsigned char *sha_src)
static inline void oidcpy(struct object_id *dst, const struct object_id *src)
{
-
hashcpy(dst->hash, src->hash
);
+
memcpy(dst->hash, src->hash, GIT_MAX_RAWSZ
);
}
static inline struct object_id *oiddup(const struct object_id *src)