summaryrefslogtreecommitdiff
path: root/archival/tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/tar.c')
-rw-r--r--archival/tar.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/archival/tar.c b/archival/tar.c
index 22cbf3a..19c84a7 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -516,14 +516,10 @@ void append_file_list_to_list(char *filename, char ***name_list, int *num_of_ent
{
FILE *src_stream;
char *line;
- char *line_ptr;
src_stream = xfopen(filename, "r");
while ((line = get_line_from_file(src_stream)) != NULL) {
- line_ptr = last_char_is(line, '\n');
- if (line_ptr) {
- *line_ptr = '\0';
- }
+ chomp (line);
append_file_to_list(line, name_list, num_of_entries);
free(line);
}