diff options
Diffstat (limited to 'editors/sed.c')
-rw-r--r-- | editors/sed.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/sed.c b/editors/sed.c index 88bae785c..67e88418a 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -732,8 +732,7 @@ static void flush_append(void) | |||
732 | 732 | ||
733 | static void add_input_file(FILE *file) | 733 | static void add_input_file(FILE *file) |
734 | { | 734 | { |
735 | G.input_file_list = xrealloc(G.input_file_list, | 735 | G.input_file_list = xrealloc_vector(G.input_file_list, 2, G.input_file_count); |
736 | (G.input_file_count + 1) * sizeof(FILE *)); | ||
737 | G.input_file_list[G.input_file_count++] = file; | 736 | G.input_file_list[G.input_file_count++] = file; |
738 | } | 737 | } |
739 | 738 | ||