fix -n with 16-chars hostnames, modified patch from PR
fix -n with 16-chars hostnames, modified patch from PR

PR: 11286
Submitted by:  Hans Huebner <hans@chaosradio.berlin.ccc.de>

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase