diff options
-rw-r--r-- | editors/diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/diff.c b/editors/diff.c index 8d91b83bf..3e2048330 100644 --- a/editors/diff.c +++ b/editors/diff.c | |||
@@ -761,9 +761,9 @@ static int FAST_FUNC add_to_dirlist(const char *filename, | |||
761 | { | 761 | { |
762 | struct dlist *const l = userdata; | 762 | struct dlist *const l = userdata; |
763 | const char *file = filename + l->len; | 763 | const char *file = filename + l->len; |
764 | l->dl = xrealloc_vector(l->dl, 6, l->e); | ||
765 | while(*file == '/') | 764 | while(*file == '/') |
766 | file++; | 765 | file++; |
766 | l->dl = xrealloc_vector(l->dl, 6, l->e); | ||
767 | l->dl[l->e] = xstrdup(file); | 767 | l->dl[l->e] = xstrdup(file); |
768 | l->e++; | 768 | l->e++; |
769 | return TRUE; | 769 | return TRUE; |