From: Roy Marples Date: Mon, 26 Jan 2009 12:47:38 +0000 (+0000) Subject: Terminate hostname X-Git-Tag: v5.0.0~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee07bdd8336cdd2e23b18ff865e481f03964ec0b;p=thirdparty%2Fdhcpcd.git Terminate hostname --- diff --git a/if-options.c b/if-options.c index 6802cdf9..e0090f2b 100644 --- a/if-options.c +++ b/if-options.c @@ -325,6 +325,7 @@ parse_option(struct if_options *ifo, int opt, const char *arg) syslog(LOG_ERR, "hostname cannot begin with a ."); return -1; } + ifo->hostname[s] = '\0'; break; case 'i': if (arg)