Header cleanup on two more networking files (move libbb.h to the top and
[oweals/busybox.git] / miscutils / strings.c
index bd07f5d3efcc2fb762dae824e0d9d6bc436669d9..107f6b4c4aaba2af81d5cf41ce678779bb2d6541 100644 (file)
  * Badly hacked by Tito Ragusa <farmatito@tiscali.it>
  */
 
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <getopt.h>
 #include <ctype.h>
-#include "busybox.h"
 
 #define WHOLE_FILE             1
 #define PRINT_NAME             2
@@ -41,7 +41,7 @@ int strings_main(int argc, char **argv)
        argv += optind;
 
        n = bb_xgetlarg(n_arg, 10, 1, INT_MAX);
-       string = xcalloc(n + 1, 1);
+       string = xzalloc(n + 1);
        n--;
 
        if (argc == 0) {