aboutsummaryrefslogtreecommitdiff
path: root/coreutils/head.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/head.c')
-rw-r--r--coreutils/head.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/head.c b/coreutils/head.c
index c5c11fc7b..ad21e1b95 100644
--- a/coreutils/head.c
+++ b/coreutils/head.c
@@ -25,6 +25,7 @@
25#include <getopt.h> 25#include <getopt.h>
26#include <stdlib.h> 26#include <stdlib.h>
27#include <string.h> 27#include <string.h>
28#include <ctype.h>
28#include "busybox.h" 29#include "busybox.h"
29 30
30static int head(int len, FILE *fp) 31static int head(int len, FILE *fp)
@@ -47,7 +48,7 @@ int head_main(int argc, char **argv)
47 FILE *fp; 48 FILE *fp;
48 int need_headers, opt, len = 10, status = EXIT_SUCCESS; 49 int need_headers, opt, len = 10, status = EXIT_SUCCESS;
49 50
50 if (( argc >= 2 ) && ( strlen ( argv [1] ) >= 2 ) && ( argv [1][0] == '-' ) && isdigit ( argv [1][1] )) { 51 if (( argc >= 2 ) && ( argv [1][0] == '-' ) && isdigit ( argv [1][1] )) {
51 len = atoi ( &argv [1][1] ); 52 len = atoi ( &argv [1][1] );
52 optind = 2; 53 optind = 2;
53 } 54 }