From f999f11e765c1bdf274cd52ef5c11cdb5eaa7474 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 12 Dec 2018 12:32:22 -0500 Subject: [PATCH] lib: Fix string size issue with clang Newer versions of clang are failing on xpath length not being sufficiently sized to hold all possible data that could be thrown at it. Signed-off-by: Donald Sharp --- lib/northbound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/northbound.c b/lib/northbound.c index 8b96dc4a6c..09aa60b1d2 100644 --- a/lib/northbound.c +++ b/lib/northbound.c @@ -1071,7 +1071,7 @@ static int nb_oper_data_iter_list(const struct nb_node *nb_node, /* Iterate over all list entries. */ do { struct yang_list_keys list_keys; - char xpath[XPATH_MAXLEN]; + char xpath[XPATH_MAXLEN * 2]; int ret; /* Obtain list entry. */ -- 2.39.5