summaryrefslogtreecommitdiffstats
path: root/drivers/net/ark/ark_pktgen.c
diff options
context:
space:
mode:
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;