Fix buffer overflow when DISPLAY is longer than 43 characters.  This is not exploitable because telnet doesn't run with elevated privs.
Fix buffer overflow when DISPLAY is longer than 43 characters.  This
is not exploitable because telnet doesn't run with elevated privs.

Didn't fix all the other potential buffer overflows.  Would be a good
task for someone who has lots of time to carefully study each case
because cut and paste solutions are dangerous for this code base.

Added $FreeBSD$ in the same way that command.c did it.

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