diff options
Diffstat (limited to 'toys')
-rw-r--r-- | toys/other/tac.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/toys/other/tac.c b/toys/other/tac.c index 78b22866..9ebc7f69 100644 --- a/toys/other/tac.c +++ b/toys/other/tac.c @@ -23,12 +23,9 @@ void do_tac(int fd, char *name) // Read in lines for (;;) { struct arg_list *temp; - int len; if (!(c = get_line(fd))) break; - len = strlen(c); - if (len && c[len-1]=='\n') c[len-1] = 0; temp = xmalloc(sizeof(struct arg_list)); temp->next = list; temp->arg = c; |