 - Use strlcpy() rather than strncpy() to copy NUL terminated    strings.  - Pass the correct buffer size to getcredhostname().
 - Use strlcpy() rather than strncpy() to copy NUL terminated
   strings.
 - Pass the correct buffer size to getcredhostname().

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