[git commit] nc: small code shrink
Denys Vlasenko
vda.linux at googlemail.com
Wed Oct 19 20:31:01 UTC 2011
commit: http://git.busybox.net/busybox/commit/?id=2ea73b513dfa831e75a297dd602576b40d38be3f
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
networking/nc_bloaty.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/networking/nc_bloaty.c b/networking/nc_bloaty.c
index 1daad13..d184f68 100644
--- a/networking/nc_bloaty.c
+++ b/networking/nc_bloaty.c
@@ -428,8 +428,7 @@ create new one, and bind() it. TODO */
rr = getsockopt(netfd, IPPROTO_IP, IP_OPTIONS, optbuf, &x);
if (rr >= 0 && x) { /* we've got options, lessee em... */
- bin2hex(bigbuf_net, optbuf, x);
- bigbuf_net[2*x] = '\0';
+ *bin2hex(bigbuf_net, optbuf, x) = '\0';
fprintf(stderr, "IP options: %s\n", bigbuf_net);
}
#endif
More information about the busybox-cvs
mailing list