Correctly print out "Connected to" hostname.   Temporal buffer was used for the hostname and freed before actually used.
Correctly print out "Connected to" hostname.
  Temporal buffer was used for the hostname and freed before actually used.

Specified by: ru
Approved by: jkh

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