summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Stokely <murray@FreeBSD.org>2001-09-06 10:27:28 +0000
committerMurray Stokely <murray@FreeBSD.org>2001-09-06 10:27:28 +0000
commit53e1e935952fe7d8aed1d28114c746928a47ad37 (patch)
treec17b9d755297e4408a102bd6cf86fb0c079bc2de
parent5693049227a36dfbb14b1f7dcd0c5fac9e56d1d5 (diff)
Notes
-rw-r--r--usr.sbin/sysinstall/dhcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/dhcp.c b/usr.sbin/sysinstall/dhcp.c
index 22eeeeb72e0f..a74a72bd4ba6 100644
--- a/usr.sbin/sysinstall/dhcp.c
+++ b/usr.sbin/sysinstall/dhcp.c
@@ -134,6 +134,8 @@ dhcpParseLeases(char *file, char *hostname, char *domain, char *nameserver,
} else if (!strcasecmp("fixed-address", optname)) {
strcpy(ipaddr, optbuf);
} else if (!strcasecmp("routers", optname)) {
+ if((tptr = (char *)strchr(optbuf, ',')))
+ *tptr = NULL;
strcpy(gateway, optbuf);
} else if (!strcasecmp("subnet-mask", optname)) {
strcpy(netmask, optbuf);