count-delta: match get_delta_hdr_size() changes.
[gitweb.git] / sha1_file.c
index aa09b4646abff2f82d30c9968ae277d35db8c438..d8ef5655611c7271dfc51f93dc8d3859556733ba 100644 (file)
@@ -804,10 +804,12 @@ static int packed_delta_info(unsigned char *base_sha1,
                 * the result size.
                 */
                data = delta_head;
-               get_delta_hdr_size(&data); /* ignore base size */
+
+               /* ignore base size */
+               get_delta_hdr_size(&data, delta_head+sizeof(delta_head));
 
                /* Read the result size */
-               result_size = get_delta_hdr_size(&data);
+               result_size = get_delta_hdr_size(&data, delta_head+sizeof(delta_head));
                *sizep = result_size;
        }
        return 0;