diff options
author | jkh <jkh@FreeBSD.org> | 1996-12-12 22:44:22 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-12-12 22:44:22 +0000 |
commit | 094f989ff4f7b79ca6d8d3d3957a91eb5d788d89 (patch) | |
tree | 97de0a44bd001b640d78117a3b6ed27d1f5b253f | |
parent | 3f15fcca9896110100559bf4db6d99613a6a93e2 (diff) | |
download | FreeBSD-src-094f989ff4f7b79ca6d8d3d3957a91eb5d788d89.zip FreeBSD-src-094f989ff4f7b79ca6d8d3d3957a91eb5d788d89.tar.gz |
Fix trunctation of domainname.
-rw-r--r-- | release/sysinstall/tcpip.c | 4 | ||||
-rw-r--r-- | usr.sbin/sysinstall/tcpip.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/release/sysinstall/tcpip.c b/release/sysinstall/tcpip.c index a8c10fc..7e4a6e5 100644 --- a/release/sysinstall/tcpip.c +++ b/release/sysinstall/tcpip.c @@ -1,5 +1,5 @@ /* - * $Id: tcpip.c,v 1.50 1996/12/09 06:37:46 jkh Exp $ + * $Id: tcpip.c,v 1.51 1996/12/09 08:22:18 jkh Exp $ * * Copyright (c) 1995 * Gary J Palmer. All rights reserved. @@ -384,7 +384,7 @@ tcpOpenDialog(Device *devp) /* BODGE ALERT! */ if (((tmp = index(hostname, '.')) != NULL) && (strlen(domainname)==0)) { - sstrncpy(domainname, tmp + 1, strlen(tmp + 1)); + SAFE_STRCPY(domainname, tmp + 1); RefreshStringObj(layout[1].obj); } } diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c index a8c10fc..7e4a6e5 100644 --- a/usr.sbin/sysinstall/tcpip.c +++ b/usr.sbin/sysinstall/tcpip.c @@ -1,5 +1,5 @@ /* - * $Id: tcpip.c,v 1.50 1996/12/09 06:37:46 jkh Exp $ + * $Id: tcpip.c,v 1.51 1996/12/09 08:22:18 jkh Exp $ * * Copyright (c) 1995 * Gary J Palmer. All rights reserved. @@ -384,7 +384,7 @@ tcpOpenDialog(Device *devp) /* BODGE ALERT! */ if (((tmp = index(hostname, '.')) != NULL) && (strlen(domainname)==0)) { - sstrncpy(domainname, tmp + 1, strlen(tmp + 1)); + SAFE_STRCPY(domainname, tmp + 1); RefreshStringObj(layout[1].obj); } } |