attempt to regularize atoi mess.

This commit is contained in:
Denis Vlasenko
2006-10-08 12:49:22 +00:00
parent 5625415085
commit 1385899416
98 changed files with 814 additions and 860 deletions

View File

@@ -34,7 +34,7 @@ int strings_main(int argc, char **argv)
argc -= optind;
argv += optind;
n = bb_xgetlarg(n_arg, 10, 1, INT_MAX);
n = xatoul_range(n_arg, 1, INT_MAX);
string = xzalloc(n + 1);
n--;
@@ -45,7 +45,8 @@ int strings_main(int argc, char **argv)
}
do {
if ((file = bb_wfopen(*argv, "r"))) {
file = bb_wfopen(*argv, "r");
if (file) {
PIPE:
count = 0;
do {