[PATCH] use xzalloc in strings.c
Tito
farmatito at tiscali.it
Wed May 24 20:50:20 UTC 2006
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
Please apply.
Ciao,
Tito
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strings.patch
Type: text/x-diff
Size: 290 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060524/ab0091e1/attachment.bin
More information about the busybox
mailing list