summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-01-26 12:48:24 +0000
committerRoy Marples <roy@marples.name>2009-01-26 12:48:24 +0000
commit62aabbd9ee748b1c7b0156d651b7bfc015d64b3d (patch)
treee5945656ccf93c84178e7a3134c4cd4e18571f7d
parent2b33cdbcc4880104cd2d570b734efd0fd3882571 (diff)
downloaddhcpcd-62aabbd9ee748b1c7b0156d651b7bfc015d64b3d.tar.xz
Terminate hostname
-rw-r--r--dhcpcd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index 2c3fb828..9e03605c 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -328,6 +328,7 @@ parse_option(int opt, char *oarg, struct options *options)
logger(LOG_ERR, "hostname cannot begin with a .");
return -1;
}
+ options->hostname[s] = '\0';
break;
case 'i':
if (oarg)