X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fip_pipeline%2Ftap.c;h=adae640c1e6b4a3d11d2cbdd962cf54384bb1c2f;hb=850fc3eadefc19e634386a3a8d857871f5e710d0;hp=ea979bdf8f9bf32b3ccd98940a1da62a9ef8fbfb;hpb=742bde12f3bd008c2f06d744330436d8b1a56720;p=dpdk.git diff --git a/examples/ip_pipeline/tap.c b/examples/ip_pipeline/tap.c index ea979bdf8f..adae640c1e 100644 --- a/examples/ip_pipeline/tap.c +++ b/examples/ip_pipeline/tap.c @@ -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) {