aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ark/ark_pktgen.c
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@gmail.com>2017-07-03 15:13:28 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2017-07-03 15:14:25 +0100
commit5c594d59c6927b6374fa59e16da3830507300321 (patch)
tree17ec0a2158cf2460e8f2ea3a1cf86ce87164e138 /drivers/net/ark/ark_pktgen.c
parent155502af1a45fa9474d56d4389dcba4e1e2c9f6d (diff)
parentbf7567fd2a5b0b28ab724046143c24561d38d015 (diff)
Merge 17.05.1 into 17.05.x
Change-Id: I65fdca844ad178ec6e2c086d45b901df93b55e58 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
Diffstat (limited to 'drivers/net/ark/ark_pktgen.c')
-rw-r--r--drivers/net/ark/ark_pktgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ark/ark_pktgen.c b/drivers/net/ark/ark_pktgen.c
index bdac054e..8c7a8a2d 100644
--- a/drivers/net/ark/ark_pktgen.c
+++ b/drivers/net/ark/ark_pktgen.c
@@ -354,7 +354,7 @@ pmd_set_arg(char *arg, char *val)
o->v.INT = atoll(val);
break;
case OTSTRING:
- strncpy(o->v.STR, val, ARK_MAX_STR_LEN);
+ snprintf(o->v.STR, ARK_MAX_STR_LEN, "%s", val);
break;
}
return 1;