From 6e808ca35419ba7ec14dd836f0e013ea35ff0aee Mon Sep 17 00:00:00 2001 From: Mark Whitley Date: Tue, 17 Apr 2001 18:26:11 +0000 Subject: Changed line[strlen(line) - 1] = '\0'; to chomp(line); --- sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sort.c') diff --git a/sort.c b/sort.c index b84453d3a..5ecca8b8f 100644 --- a/sort.c +++ b/sort.c @@ -71,7 +71,7 @@ int sort_main(int argc, char **argv) while ((line = get_line_from_file(fp)) != NULL) { lines = xrealloc(lines, sizeof(char *) * (nlines + 1)); - line[strlen(line) - 1] = '\0'; + chomp(line); lines[nlines++] = line; } } -- cgit v1.2.3