diff options
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, |