if (cr) {
struct ovs_router_entry *p = ovs_router_entry_cast(cr);
- strncpy(output_bridge, p->output_bridge, IFNAMSIZ);
+ ovs_strlcpy(output_bridge, p->output_bridge, IFNAMSIZ);
*gw = p->gw;
return true;
}
rt_init_match(&match, ip_dst, plen);
p = xzalloc(sizeof *p);
- strncpy(p->output_bridge, output_bridge, IFNAMSIZ);
+ ovs_strlcpy(p->output_bridge, output_bridge, sizeof p->output_bridge);
p->gw = gw;
p->nw_addr = match.flow.nw_dst;
p->plen = plen;