Prevent overflow in -d argument by replacing hand-rolled strcat+strcpy+perror with err()
Prevent overflow in -d argument by replacing hand-rolled
strcat+strcpy+perror with err()

Submitted by:	Mike Heffner <mheffner@vt.edu>

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