diff options
author | Steven Barth <steven@midlink.org> | 2014-02-25 12:39:34 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-02-25 12:39:34 +0100 |
commit | 7a6a84175571603dc36a786d570ac33171b82532 (patch) | |
tree | c23a8cd123180878529d6514ebee9ec39f16c08f | |
parent | 56c6a4a72a0e086074f69d2ee5cc46079d179dac (diff) |
config: more static ndp fixes
-rw-r--r-- | src/config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index cac2d09..7f51585 100644 --- a/src/config.c +++ b/src/config.c @@ -494,6 +494,9 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr if (!iface->static_ndp) goto err; + if (iface->static_ndp_len) + iface->static_ndp[iface->static_ndp_len - 1] = ' '; + memcpy(&iface->static_ndp[iface->static_ndp_len], blobmsg_get_string(cur), len); iface->static_ndp_len += len; } |