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-hostname-space.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File net-tools-1.60-hostname-space.patch of Package net-tools
--- net-tools-1.60/hostname.c 2007-05-02 10:28:42.000000000 +0200 +++ net-tools-1.60/hostname.c 2007-05-02 10:35:59.000000000 +0200 @@ -156,13 +156,19 @@ switch (c) { case 'a': - while (hp->h_aliases[0]) - printf("%s ", *hp->h_aliases++); + while (hp->h_aliases[0]) { + printf("%s", *hp->h_aliases++); + if (hp->h_aliases[0]) + printf(" "); + } printf("\n"); break; case 'i': - while (hp->h_addr_list[0]) - printf("%s ", inet_ntoa(*(struct in_addr *) *hp->h_addr_list++)); + while (hp->h_addr_list[0]) { + printf("%s", inet_ntoa(*(struct in_addr *) *hp->h_addr_list++)); + if (hp->h_addr_list[0]) + printf(" "); + } printf("\n"); break; case 'd':
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