aboutsummaryrefslogtreecommitdiff
path: root/editors/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/diff.c')
-rw-r--r--editors/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/diff.c b/editors/diff.c
index 570c4c490..64ad6511d 100644
--- a/editors/diff.c
+++ b/editors/diff.c
@@ -1059,6 +1059,7 @@ static unsigned diffreg(char *file1, char *file2, int flags)
1059 1059
1060 member = (int *) nfile[1]; 1060 member = (int *) nfile[1];
1061 equiv(sfile[0], slen[0], sfile[1], slen[1], member); 1061 equiv(sfile[0], slen[0], sfile[1], slen[1], member);
1062//TODO: xrealloc_vector?
1062 member = xrealloc(member, (slen[1] + 2) * sizeof(int)); 1063 member = xrealloc(member, (slen[1] + 2) * sizeof(int));
1063 1064
1064 class = (int *) nfile[0]; 1065 class = (int *) nfile[0];
@@ -1168,8 +1169,7 @@ static int FAST_FUNC add_to_dirlist(const char *filename,
1168 void *userdata, 1169 void *userdata,
1169 int depth UNUSED_PARAM) 1170 int depth UNUSED_PARAM)
1170{ 1171{
1171 /* +2: with space for eventual trailing NULL */ 1172 dl = xrealloc_vector(dl, 5, dl_count);
1172 dl = xrealloc(dl, (dl_count+2) * sizeof(dl[0]));
1173 dl[dl_count] = xstrdup(filename + (int)(ptrdiff_t)userdata); 1173 dl[dl_count] = xstrdup(filename + (int)(ptrdiff_t)userdata);
1174 dl_count++; 1174 dl_count++;
1175 return TRUE; 1175 return TRUE;