Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pack-objects: pass length to check_pack_crc() without truncation
[gitweb.git]
/
builtin
/
pack-objects.c
diff --git
a/builtin/pack-objects.c
b/builtin/pack-objects.c
index b6664ce4d8d72cde05e1f1be5edcd967f003f0ef..a3a98c57410b0a32ed85c87013f8bd682af3a75a 100644
(file)
--- a/
builtin/pack-objects.c
+++ b/
builtin/pack-objects.c
@@
-349,7
+349,7
@@
static unsigned long write_reuse_object(struct sha1file *f, struct object_entry
struct revindex_entry *revidx;
off_t offset;
enum object_type type = entry->type;
-
unsigned long
datalen;
+
off_t
datalen;
unsigned char header[10], dheader[10];
unsigned hdrlen;