match-trees: compute buffer offset correctly when splicing
[gitweb.git] / builtin / rerere.c
index 6f28c19b20d0167c3d916eb180bc64b37e64528b..fd3be17b976c7d2f413b4e760236c2274f1e7639 100644 (file)
@@ -41,7 +41,8 @@ static int diff_two(const char *file1, const char *label1,
        xpp.flags = 0;
        memset(&xecfg, 0, sizeof(xecfg));
        xecfg.ctxlen = 3;
-       ecb.outf = outf;
+       ecb.out_hunk = NULL;
+       ecb.out_line = outf;
        ret = xdi_diff(&minus, &plus, &xpp, &xecfg, &ecb);
 
        free(minus.ptr);