[PATCH] use xzalloc in strings.c
Rob Landley
rob at landley.net
Sat May 27 00:45:18 UTC 2006
On Wednesday 24 May 2006 4:50 pm, Tito wrote:
> Hi,
>
> --- miscutils/strings_orig.c 2006-05-08 14:08:30.000000000 +0200
> +++ miscutils/strings.c 2006-05-24 22:42:34.000000000 +0200
> @@ -41,7 +41,7 @@
> argv += optind;
>
> n = bb_xgetlarg(n_arg, 10, 1, INT_MAX);
> - string = xcalloc(n + 1, 1);
> + string = xzalloc(n + 1);
> n--;
>
>
> bloat-o-meter:
> strings_main 413 410 -3
There's about 8 gazillion of these... :)
I need to do a cleanup pass. Hmmm...
Rob
--
Never bet against the cheap plastic solution.
More information about the busybox
mailing list