From 027fb842ac353396858cfc9cd62d2496411ea87a Mon Sep 17 00:00:00 2001 From: MaxineMuster <146550015+MaxineMuster@users.noreply.github.com> Date: Wed, 14 Aug 2024 20:22:09 +0200 Subject: [PATCH] Fix json_interface.c (#1312) Requesting "STATUS" or "STATUS 5" on W800 was crashing the module. Reason was "tmpStr" was too short, now it works. Might have caused instability on other platforms, too --- src/httpserver/json_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpserver/json_interface.c b/src/httpserver/json_interface.c index 6da678d1a..4c2ff6a62 100644 --- a/src/httpserver/json_interface.c +++ b/src/httpserver/json_interface.c @@ -552,7 +552,7 @@ static int http_tasmota_json_status_MEM(void* request, jsonCb_t printer) { } // Test command: http://192.168.0.159/cm?cmnd=STATUS%205 static int http_tasmota_json_status_NET(void* request, jsonCb_t printer) { - char tmpStr[16]; + char tmpStr[19]; // will be used for MAC string 6*3 chars (18 would be o.k, since last hex has no ":" ...) HAL_GetMACStr(tmpStr); printer(request, "\"StatusNET\":{");