]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Terminate hostname
authorRoy Marples <roy@marples.name>
Mon, 26 Jan 2009 12:47:38 +0000 (12:47 +0000)
committerRoy Marples <roy@marples.name>
Mon, 26 Jan 2009 12:47:38 +0000 (12:47 +0000)
if-options.c

index 6802cdf9fefefca9a5538b0ca01d69103ed525e2..e0090f2b2244b8f166e3dfd8d6c3a25be1cd7764 100644 (file)
@@ -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)