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

index 2c3fb82840b3ca5a11c4f888780b94b1ff17b3c7..9e03605c6f6f5ca9d976c3d9481ac7d2fbff2f25 100644 (file)
--- 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)