From 39083b6add93df27b3fde0976b386e7a67df26b1 Mon Sep 17 00:00:00 2001 From: Norbert Richter Date: Tue, 29 Aug 2023 19:53:40 +0200 Subject: [PATCH] Fix xdrv_122_file_settings_demo buffer overflow (#19405) --- 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 cd2cf64c3..0e1dd13f3 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