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
examples/power: fix build with some disabled PMDs
[dpdk.git]
/
examples
/
tep_termination
/
main.c
diff --git
a/examples/tep_termination/main.c
b/examples/tep_termination/main.c
index
d6379e3
..
e0fe7bd
100644
(file)
--- a/
examples/tep_termination/main.c
+++ b/
examples/tep_termination/main.c
@@
-191,7
+191,7
@@
us_vhost_parse_basename(const char *q_arg)
if (strlen(q_arg) >= MAX_BASENAME_SZ)
return -1;
else
- s
nprintf((char *)&dev_basename, MAX_BASENAME_SZ, "%s", q_arg
);
+ s
trlcpy((char *)&dev_basename, q_arg, MAX_BASENAME_SZ
);
return 0;
}