From 80334aaba2d54b1192eed5481b89a750983058da Mon Sep 17 00:00:00 2001 From: Simon Tate Date: Mon, 17 Oct 2022 05:40:36 +0000 Subject: [PATCH] Update UCI max section length (cherry picked from commit 9a3f9c0327ae30233fc3231d433ec29ccc02cd9a) --- libbbf_api/dmuci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbbf_api/dmuci.c b/libbbf_api/dmuci.c index 9a022206..53df8e1c 100644 --- a/libbbf_api/dmuci.c +++ b/libbbf_api/dmuci.c @@ -579,7 +579,7 @@ int dmuci_delete(char *package, char *section, char *option, char *value) int dmuci_rename_section(char *package, char *section, char *value) { struct uci_ptr ptr = {0}; - char sec_name[32] = {0}; + char sec_name[128] = {0}; dmuci_replace_invalid_characters_from_section_name(value, sec_name, sizeof(sec_name)); @@ -777,7 +777,7 @@ int dmuci_del_list_value_by_section(struct uci_section *s, char *option, char *v int dmuci_rename_section_by_section(struct uci_section *s, char *value) { struct uci_ptr up = {0}; - char sec_name[32] = {0}; + char sec_name[128] = {0}; dmuci_replace_invalid_characters_from_section_name(value, sec_name, sizeof(sec_name));