summaryrefslogtreecommitdiff
path: root/count-delta.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-04-07 23:48:09 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-04-07 23:48:09 (GMT)
commit98cf8156078eb5256d77d01786863185a1728140 (patch)
tree42df8730d1c5d046ad5fa6a52b16fb0264a4d19b /count-delta.c
parent8960844a7890b1ac6ad5f8abf58a2a20923dde6d (diff)
downloadgit-0719925f2364525036803722735c5591d7fdc134.zip
git-0719925f2364525036803722735c5591d7fdc134.tar.gz
git-0719925f2364525036803722735c5591d7fdc134.tar.bz2
count-delta: match get_delta_hdr_size() changes.v1.2.6
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'count-delta.c')
-rw-r--r--count-delta.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/count-delta.c b/count-delta.c
index 058a2aa..54215df 100644
--- a/count-delta.c
+++ b/count-delta.c
@@ -32,8 +32,8 @@ int count_delta(void *delta_buf, unsigned long delta_size,
data = delta_buf;
top = delta_buf + delta_size;
- src_size = get_delta_hdr_size(&data);
- dst_size = get_delta_hdr_size(&data);
+ src_size = get_delta_hdr_size(&data, top);
+ dst_size = get_delta_hdr_size(&data, top);
added_literal = copied_from_source = out = 0;
while (data < top) {