Code

count-delta: match get_delta_hdr_size() changes. v1.2.6
authorJunio C Hamano <junkio@cox.net>
Fri, 7 Apr 2006 23:48:09 +0000 (16:48 -0700)
committerJunio C Hamano <junkio@cox.net>
Fri, 7 Apr 2006 23:48:09 +0000 (16:48 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
count-delta.c

index 058a2aadb1475801ea7573837867fa79bf1766c1..54215df7f30ad8652aa3358e1a081bc1f0bab272 100644 (file)
@@ -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) {