From 485472c5a68bc7aa98fa9fe5c108bb49cff5529b Mon Sep 17 00:00:00 2001 From: Norbert Richter Date: Mon, 28 Aug 2023 12:32:28 +0200 Subject: [PATCH] Fix xdrv_122_file_settings_demo buffer overflow --- tasmota/tasmota_xdrv_driver/xdrv_122_file_settings_demo.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_122_file_settings_demo.ino b/tasmota/tasmota_xdrv_driver/xdrv_122_file_settings_demo.ino index cd2cf64c3103..0e1dd13f3d61 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_122_file_settings_demo.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_122_file_settings_demo.ino @@ -48,7 +48,7 @@ struct { uint32_t crc32; // To detect file changes uint16_t version; // To detect driver function changes uint16_t spare; - char drv_text[DRV_DEMO_MAX_DRV_TEXT -1][10]; + char drv_text[DRV_DEMO_MAX_DRV_TEXT][10]; } DrvDemoSettings; // Global structure containing driver non-saved variables