Allocate correct hostname length