summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncftp/cmds.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-11-04 06:11:39 +0000
committerache <ache@FreeBSD.org>1994-11-04 06:11:39 +0000
commita990c7e2831943a141ce695e5bb4aea2d33f6fed (patch)
treee9ba6abc4442a17e4b7e1bcf1ef95c8878b344d3 /usr.bin/ncftp/cmds.c
parent4db77228e547f5508e488faea409e9d3592a1d23 (diff)
downloadFreeBSD-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.c3
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,
OpenPOWER on IntegriCloud