This commit is contained in:
Nick Peng
2018-06-29 01:06:24 +08:00
parent 10136a73b3
commit a1906787b1
7 changed files with 147 additions and 72 deletions

View File

@@ -97,6 +97,7 @@ int config_address(char *value)
goto errout;
}
memset(address, 0, sizeof(*address));
len = end - begin;
memcpy(address->domain, begin, len);
address->domain[len] = 0;