Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/mbox-from-line'
[gitweb.git]
/
line-log.c
diff --git
a/line-log.c
b/line-log.c
index 1008e722584c882ac86b936307ace701b9225aaf..038c58a395c6804e5f719d4d82a3d4edbd6d8901 100644
(file)
--- a/
line-log.c
+++ b/
line-log.c
@@
-533,7
+533,7
@@
static void fill_line_ends(struct diff_filespec *spec, long *lines,
}
/* shrink the array to fit the elements */
-
ends = xrealloc(ends, cur * sizeof(*ends)
);
+
REALLOC_ARRAY(ends, cur
);
*lines = cur-1;
*line_ends = ends;
}