diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-06-05 20:03:02 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2024-06-05 20:03:02 -0400 |
commit | c6473f4e7fe0ab0c8e855c2e64b222e62fb2c7d9 (patch) | |
tree | 95fb36470a89772dece495dad244cbdead1d65f4 | |
parent | c96d728d8148a06a311dc56845a8e16108bdd847 (diff) | |
download | rockbox-c6473f4e7f.tar.gz rockbox-c6473f4e7f.zip |
[Fix Yellow] imx233_debug fix yellow
Change-Id: I2d04340a8383edd03350045085188d2191e41526
-rw-r--r-- | firmware/target/arm/imx233/debug-imx233.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/arm/imx233/debug-imx233.c b/firmware/target/arm/imx233/debug-imx233.c index 5d759e40aa..3e9e936c20 100644 --- a/firmware/target/arm/imx233/debug-imx233.c +++ b/firmware/target/arm/imx233/debug-imx233.c @@ -42,6 +42,7 @@ #include "timrot-imx233.h" #include "string.h" #include "stdio.h" +#include "strlcat.h" #include "button.h" #include "button-imx233.h" #include "sdmmc-imx233.h" @@ -1202,9 +1203,9 @@ bool dbg_hw_info_button(void) } flags[0] = 0; if(MAP[i].flags & IMX233_BUTTON_INVERTED) - strcat(flags, " inv"); + strlcat(flags, " inv", sizeof(flags)); if(MAP[i].flags & IMX233_BUTTON_PULLUP) - strcat(flags, " pull"); + strlcat(flags, " pull", sizeof(flags)); #if LCD_WIDTH <= LCD_HEIGHT lcd_putsf(0, line++, "%s %d %d/%d %d %s", MAP[i].name, val, MAP[i].rounds, MAP[i].threshold, raw, type); |