Code

mergetool: put the cursor on the editable file for Vim
[git.git] / revision.c
index 9dc55d4003301c0ededbd6059e16cabf5684766b..db60f06c98137f6e6e95727450d2842a0d4fb2a6 100644 (file)
@@ -995,7 +995,7 @@ static void add_ignore_packed(struct rev_info *revs, const char *name)
        int num = ++revs->num_ignore_packed;
 
        revs->ignore_packed = xrealloc(revs->ignore_packed,
-                                      sizeof(const char **) * (num + 1));
+                                      sizeof(const char *) * (num + 1));
        revs->ignore_packed[num-1] = name;
        revs->ignore_packed[num] = NULL;
 }