From 1bd9b61222f3a81ffe770fc00b70ded6e760c42b Mon Sep 17 00:00:00 2001 From: Christian Ehrhardt Date: Fri, 1 Jun 2018 09:09:08 +0200 Subject: New upstream version 18.05 Change-Id: Icd4170ddc4f63aeae5d0559490e5195b5349f9c2 Signed-off-by: Christian Ehrhardt --- examples/load_balancer/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/load_balancer/config.c') 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; -- cgit 1.2.3-korg