net/bnxt: ignore VLAN priority mask
[dpdk.git] / examples / ip_pipeline / tap.c
index ea979bd..adae640 100644 (file)
@@ -75,7 +75,7 @@ tap_create(const char *name)
 
        memset(&ifr, 0, sizeof(ifr));
        ifr.ifr_flags = IFF_TAP | IFF_NO_PI; /* No packet information */
-       snprintf(ifr.ifr_name, IFNAMSIZ, "%s", name);
+       strlcpy(ifr.ifr_name, name, IFNAMSIZ);
 
        status = ioctl(fd, TUNSETIFF, (void *) &ifr);
        if (status < 0) {