aboutsummaryrefslogtreecommitdiffstats
path: root/examples/load_balancer/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/load_balancer/config.c')
-rw-r--r--examples/load_balancer/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/load_balancer/config.c b/examples/load_balancer/config.c
index b5b66368..972c85c5 100644
--- a/examples/load_balancer/config.c
+++ b/examples/load_balancer/config.c
@@ -121,7 +121,7 @@ str_to_unsigned_array(
int i, num_splits = 0;
/* copy s so we don't modify original string */
- snprintf(str, sizeof(str), "%s", s);
+ strlcpy(str, s, sizeof(str));
num_splits = rte_strsplit(str, sizeof(str), splits, num_vals, separator);
errno = 0;