projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ea37d6
)
nc: small code shrink
author
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 19 Oct 2011 20:31:01 +0000
(22:31 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 19 Oct 2011 20:31:01 +0000
(22:31 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/nc_bloaty.c
patch
|
blob
|
history
diff --git
a/networking/nc_bloaty.c
b/networking/nc_bloaty.c
index 1daad1358c983d5d97d7669513dbe49d7a85cbcd..d184f689b57479f26e8ca33e5cfc0fc4475597fc 100644
(file)
--- 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