git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pipeline: support action annotations
[dpdk.git]
/
examples
/
ip_pipeline
/
tap.c
diff --git
a/examples/ip_pipeline/tap.c
b/examples/ip_pipeline/tap.c
index
ea979bd
..
adae640
100644
(file)
--- 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 */
- s
nprintf(ifr.ifr_name, IFNAMSIZ, "%s", name
);
+ s
trlcpy(ifr.ifr_name, name, IFNAMSIZ
);
status = ioctl(fd, TUNSETIFF, (void *) &ifr);
if (status < 0) {