diff options
Diffstat (limited to 'coreutils/tail.c')
-rw-r--r-- | coreutils/tail.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c index 8201c80a0..024441e73 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <fcntl.h> | 25 | #include <fcntl.h> |
26 | #include <getopt.h> | 26 | #include <getopt.h> |
27 | #include <string.h> | 27 | #include <string.h> |
28 | #include <ctype.h> | ||
28 | #include <stdlib.h> | 29 | #include <stdlib.h> |
29 | #include <unistd.h> | 30 | #include <unistd.h> |
30 | #include <sys/types.h> | 31 | #include <sys/types.h> |
@@ -68,7 +69,7 @@ int tail_main(int argc, char **argv) | |||
68 | char *s, *start, *end, buf[BUFSIZ]; | 69 | char *s, *start, *end, buf[BUFSIZ]; |
69 | int i, opt; | 70 | int i, opt; |
70 | 71 | ||
71 | if (( argc >= 2 ) && ( strlen ( argv [1] ) >= 2 ) && ( argv [1][0] == '-' ) && isdigit ( argv [1][1] )) { | 72 | if (( argc >= 2 ) && ( argv [1][0] == '-' ) && isdigit ( argv [1][1] )) { |
72 | count = atoi ( &argv [1][1] ); | 73 | count = atoi ( &argv [1][1] ); |
73 | optind = 2; | 74 | optind = 2; |
74 | } | 75 | } |