log: decorate HEAD -> branch with the same color for arrow and HEAD
[gitweb.git] / diff.h
diff --git a/diff.h b/diff.h
index c7ad42addf8e4cd91b423d96526a5557473e5688..37e43bc537fac4044d528a64f2dd7fd26a7353af 100644 (file)
--- a/diff.h
+++ b/diff.h
@@ -221,8 +221,8 @@ struct combine_diff_path {
        } parent[FLEX_ARRAY];
 };
 #define combine_diff_path_size(n, l) \
-       (sizeof(struct combine_diff_path) + \
-        sizeof(struct combine_diff_parent) * (n) + (l) + 1)
+       st_add4(sizeof(struct combine_diff_path), (l), 1, \
+               st_mult(sizeof(struct combine_diff_parent), (n)))
 
 extern void show_combined_diff(struct combine_diff_path *elem, int num_parent,
                              int dense, struct rev_info *);