Signed-off-by: Felix Fietkau <nbd@nbd.name>
fw3_foreach(dev, &z->devices)
{
fw3_foreach(dev, &z->devices)
{
if (!dev)
continue;
p = buf;
if (!dev)
continue;
p = buf;
+ ep = buf + sizeof(buf);
+ p += snprintf(p, ep - p, "!");
- p += sprintf(p, "%s@%s", dev->name, dev->network);
+ p += snprintf(p, ep - p, "%s@%s", dev->name, dev->network);
- p += sprintf(p, "%s", dev->name);
+ p += snprintf(p, ep - p, "%s", dev->name);
ptr.value = buf;
uci_add_list(ctx, &ptr);
ptr.value = buf;
uci_add_list(ctx, &ptr);