fix for bug #3517 HPUX hosts truncate the hostname to eight characters

Fixes bug #3517 where HPUX hostname is truncated to 8 characters