Correctly terminate nc target hostname when copying it.
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 7 Aug 2007 22:02:03 +0000 (22:02 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 7 Aug 2007 22:02:03 +0000 (22:02 +0000)
commit786476b93a0377f202d4bc7b156dbc6cce6fcf59
treee5bc8c620e466c21bc8bc66b14e18d4875f65e43
parent9fca3f8c1d548f46bcbcccb7807912049afb456e
Correctly terminate nc target hostname when copying it.
While we're here, use memcpy rather than strncpy when we've already worked
out how much we're going to copy.

git-svn-id: svn://svn.tartarus.org/sgt/putty@7685 cda61777-01e9-0310-a592-d414129be87e
cmdline.c