diff mbox series

parser: increase size for bootloader variables

Message ID 20190314144205.7271-1-sbabic@denx.de
State Accepted
Headers show
Series parser: increase size for bootloader variables | expand

Commit Message

Stefano Babic March 14, 2019, 2:42 p.m. UTC
It looks like there are more creative ways for the bootloader
environment as initially thought and this leads to very long scripts.
They are currently truncated by SWUpdate - increase the size for each
variable to 1K.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 parser/parser.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/parser/parser.c b/parser/parser.c
index bc89b9d..959d09e 100644
--- a/parser/parser.c
+++ b/parser/parser.c
@@ -409,8 +409,8 @@  static int parse_bootloader(parsertype p, void *cfg, struct swupdate_cfg *swcfg)
 	void *setting, *elem;
 	int count, i;
 	struct img_type *script;
-	char name[32];
-	char value[255];
+	char name[SWUPDATE_GENERAL_STRING_SIZE];
+	char value[MAX_BOOT_SCRIPT_LINE_LENGTH];
 
 	setting = find_node(p, cfg, "uboot", swcfg);