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/ice: acquire and disable DCF capability
[dpdk.git]
/
drivers
/
net
/
ark
/
ark_pktgen.c
diff --git
a/drivers/net/ark/ark_pktgen.c
b/drivers/net/ark/ark_pktgen.c
index
2a2b428
..
2cae252
100644
(file)
--- a/
drivers/net/ark/ark_pktgen.c
+++ b/
drivers/net/ark/ark_pktgen.c
@@
-7,6
+7,7
@@
#include <locale.h>
#include <unistd.h>
#include <locale.h>
#include <unistd.h>
+#include <rte_string_fns.h>
#include <rte_eal.h>
#include <rte_ethdev_driver.h>
#include <rte_eal.h>
#include <rte_ethdev_driver.h>
@@
-329,7
+330,7
@@
pmd_set_arg(char *arg, char *val)
o->v.INT = atoll(val);
break;
case OTSTRING:
o->v.INT = atoll(val);
break;
case OTSTRING:
- s
nprintf(o->v.STR, ARK_MAX_STR_LEN, "%s", val
);
+ s
trlcpy(o->v.STR, val, ARK_MAX_STR_LEN
);
break;
}
return 1;
break;
}
return 1;