aboutsummaryrefslogtreecommitdiff
path: root/networking/nc_bloaty.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-10-19 22:31:01 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-10-19 22:31:01 +0200
commit2ea73b513dfa831e75a297dd602576b40d38be3f (patch)
tree43a8fb173f4f869d20a84eae810101ecdcbda657 /networking/nc_bloaty.c
parent4ea37d62c2b90e360a97c43ffdb10afabaac46d9 (diff)
downloadbusybox-w32-2ea73b513dfa831e75a297dd602576b40d38be3f.tar.gz
busybox-w32-2ea73b513dfa831e75a297dd602576b40d38be3f.tar.bz2
busybox-w32-2ea73b513dfa831e75a297dd602576b40d38be3f.zip
nc: small code shrink
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/nc_bloaty.c')
-rw-r--r--networking/nc_bloaty.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/nc_bloaty.c b/networking/nc_bloaty.c
index 1daad1358..d184f689b 100644
--- a/networking/nc_bloaty.c
+++ b/networking/nc_bloaty.c
@@ -428,8 +428,7 @@ create new one, and bind() it. TODO */
428 428
429 rr = getsockopt(netfd, IPPROTO_IP, IP_OPTIONS, optbuf, &x); 429 rr = getsockopt(netfd, IPPROTO_IP, IP_OPTIONS, optbuf, &x);
430 if (rr >= 0 && x) { /* we've got options, lessee em... */ 430 if (rr >= 0 && x) { /* we've got options, lessee em... */
431 bin2hex(bigbuf_net, optbuf, x); 431 *bin2hex(bigbuf_net, optbuf, x) = '\0';
432 bigbuf_net[2*x] = '\0';
433 fprintf(stderr, "IP options: %s\n", bigbuf_net); 432 fprintf(stderr, "IP options: %s\n", bigbuf_net);
434 } 433 }
435#endif 434#endif