commit | d0dceaf0ffdd1ad0e5169777126da8126903dba8 | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Fri Jan 30 13:36:49 2015 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Fri Jan 30 13:36:49 2015 +0000 |
tree | 1a630927850e462f2727bbabf4ab8a9e6d70720a | |
parent | a0a4909988f9a5db1427dbf7a5ef4efbfb3e8125 [diff] |
printsock: do not fetch sockaddr.sa_data twice * net.c (printsock): Print addrbuf.sa.sa_data using print_quoted_string.
diff --git a/net.c b/net.c index b9733a0..e6e081d 100644 --- a/net.c +++ b/net.c
@@ -398,8 +398,8 @@ default: tprints("sa_data="); - printstr(tcp, (long) &((struct sockaddr *) addr)->sa_data, - sizeof addrbuf.sa.sa_data); + print_quoted_string(addrbuf.sa.sa_data, + sizeof(addrbuf.sa.sa_data), 0); break; } tprints("}");