Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
net-tools
net-tools-1.60-dont-trim-foreign-addr6.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File net-tools-1.60-dont-trim-foreign-addr6.diff of Package net-tools
--- netstat.c +++ netstat.c 2011/02/15 11:22:47 @@ -899,8 +899,10 @@ static void tcp_do_one(int lnr, const ch snprintf(buffer, sizeof(buffer), "%s", get_sname(htons(rem_port), "tcp", flag_not & FLAG_NUM_PORT)); - if ((strlen(rem_addr) + strlen(buffer)) > 22) - rem_addr[22 - strlen(buffer)] = '\0'; + if (!flag_trim) { + if ((strlen(rem_addr) + strlen(buffer)) > 22) + rem_addr[22 - strlen(buffer)] = '\0'; + } strcat(rem_addr, ":"); strcat(rem_addr, buffer);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor