Fix xdrv_122_file_settings_demo buffer overflow (#19405)

This commit is contained in:
Norbert Richter 2023-08-29 19:53:40 +02:00 committed by GitHub
parent a4cfc414be
commit 39083b6add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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