From: Roy Marples Date: Mon, 26 Jan 2009 12:48:24 +0000 (+0000) Subject: Terminate hostname X-Git-Tag: v4.0.9~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62aabbd9ee748b1c7b0156d651b7bfc015d64b3d;p=thirdparty%2Fdhcpcd.git Terminate hostname --- 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)