From d60dd348fd15cb0fbd797068d5e358ae183386f6 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 17 Apr 2025 17:39:26 +0200 Subject: fw: app: settings: Minimize changes for SEGFAULT fix The core issue is that JSON_TOK_STRING as last argument to JSON_OBJ_DESCR_PRIM issues the SEGFAULT. Using JSON_TOK_NUMBER instead is the minimal change to avoid the SEGFAULT temporarily. Obviously this leads to nonsense output since the string is printed out as number. --- fw/app/src/settings.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fw/app/src/settings.h') diff --git a/fw/app/src/settings.h b/fw/app/src/settings.h index dff3c44..9d46132 100644 --- a/fw/app/src/settings.h +++ b/fw/app/src/settings.h @@ -15,8 +15,7 @@ struct settings_syslog_target { -// char ip[IPV6_STRLEN_MAX]; - int ip; + char ip[IPV6_STRLEN_MAX]; }; struct settings_syslog { -- cgit v1.2.3-70-g09d2