diff options
author | ache <ache@FreeBSD.org> | 1994-11-04 06:11:39 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-11-04 06:11:39 +0000 |
commit | a990c7e2831943a141ce695e5bb4aea2d33f6fed (patch) | |
tree | e9ba6abc4442a17e4b7e1bcf1ef95c8878b344d3 /usr.bin/ncftp/cmds.c | |
parent | 4db77228e547f5508e488faea409e9d3592a1d23 (diff) | |
download | FreeBSD-src-a990c7e2831943a141ce695e5bb4aea2d33f6fed.zip FreeBSD-src-a990c7e2831943a141ce695e5bb4aea2d33f6fed.tar.gz |
Merge changes with new version
Diffstat (limited to 'usr.bin/ncftp/cmds.c')
-rw-r--r-- | usr.bin/ncftp/cmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ncftp/cmds.c b/usr.bin/ncftp/cmds.c index 8b82152..d968467 100644 --- a/usr.bin/ncftp/cmds.c +++ b/usr.bin/ncftp/cmds.c @@ -1812,7 +1812,8 @@ to be the full name of your hostname.\n"); * the domain to the machine to get a full hostname. */ if (domain[0]) { - (void) _Strncat(host, ".", size); + if (domain[0] != '.') + (void) _Strncat(host, ".", size); (void) _Strncat(host, domain, size); } else { fprintf(stderr, |