Fix buffer overflow with hostnames longer than 33 characters (patch from Christoph Biedl). Closes: #705894, LP: #1097289