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
net/netvsc: reset mbuf port on VF Rx
[dpdk.git]
/
examples
/
netmap_compat
/
lib
/
compat_netmap.c
diff --git
a/examples/netmap_compat/lib/compat_netmap.c
b/examples/netmap_compat/lib/compat_netmap.c
index
0be0663
..
10a4379
100644
(file)
--- a/
examples/netmap_compat/lib/compat_netmap.c
+++ b/
examples/netmap_compat/lib/compat_netmap.c
@@
-302,7
+302,7
@@
netmap_regif(struct nmreq *req, uint32_t idx, uint16_t port)
if (req->nr_ringid != 0)
return -EINVAL;
- s
nprintf(nmif->ni_name, sizeof(nmif->ni_name), "%s", req->nr_name
);
+ s
trlcpy(nmif->ni_name, req->nr_name, sizeof(nmif->ni_name)
);
nmif->ni_version = req->nr_version;
/* Netmap uses ni_(r|t)x_rings + 1 */