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 41394dbb2c4e..c19cf0c61f2d 100644 --- a/usr.bin/ncftp/cmds.c +++ b/usr.bin/ncftp/cmds.c @@ -1798,7 +1798,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,  | 
