Skip to content

Commit 98cf815

Browse files
author
Junio C Hamano
committed
count-delta: match get_delta_hdr_size() changes.
Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 8960844 commit 98cf815

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

count-delta.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ int count_delta(void *delta_buf, unsigned long delta_size,
3232
data = delta_buf;
3333
top = delta_buf + delta_size;
3434

35-
src_size = get_delta_hdr_size(&data);
36-
dst_size = get_delta_hdr_size(&data);
35+
src_size = get_delta_hdr_size(&data, top);
36+
dst_size = get_delta_hdr_size(&data, top);
3737

3838
added_literal = copied_from_source = out = 0;
3939
while (data < top) {

0 commit comments

Comments
 (0)