Merge branch 'ls/travis-submitting-patches' into HEAD
[gitweb.git] / diffcore-rename.c
index 69fcf77be02df4160dfaa04380d0a262b9d4aa02..7f03eb5a0404d4b44f292fba76433dfec74dcd44 100644 (file)
@@ -539,7 +539,7 @@ void diffcore_rename(struct diff_options *options)
                                rename_dst_nr * rename_src_nr, 50, 1);
        }
 
-       mx = xcalloc(num_create * NUM_CANDIDATE_PER_DST, sizeof(*mx));
+       mx = xcalloc(st_mult(num_create, NUM_CANDIDATE_PER_DST), sizeof(*mx));
        for (dst_cnt = i = 0; i < rename_dst_nr; i++) {
                struct diff_filespec *two = rename_dst[i].two;
                struct diff_score *m;