config: more static ndp fixes
authorSteven Barth <steven@midlink.org>
Tue, 25 Feb 2014 11:39:34 +0000 (12:39 +0100)
committerSteven Barth <steven@midlink.org>
Tue, 25 Feb 2014 11:39:34 +0000 (12:39 +0100)
src/config.c

index cac2d09..7f51585 100644 (file)
@@ -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;
                }