diff options
| author | Roy Marples <roy@marples.name> | 2009-01-26 12:47:38 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-01-26 12:47:38 +0000 |
| commit | ee07bdd8336cdd2e23b18ff865e481f03964ec0b (patch) | |
| tree | 5e14042005e8b50c9f23ba7ca5641cc3246dee3d /if-options.c | |
| parent | 7cce80be02b7ea61ff639c2a31cf07609a7fd3a4 (diff) | |
| download | dhcpcd-ee07bdd8336cdd2e23b18ff865e481f03964ec0b.tar.xz | |
Terminate hostname
Diffstat (limited to 'if-options.c')
| -rw-r--r-- | if-options.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |
