fix(firmware): potential crash when using multi protocol module. (#7039)

Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
This commit is contained in:
philmoz
2026-01-27 16:33:43 +10:00
committed by GitHub
co-authored by philmoz
parent 527ec89895
commit 0087e258f9
3 changed files with 8 additions and 5 deletions
+5
View File
@@ -120,6 +120,11 @@ char *strcat_zchar(char *dest, const char *name, uint8_t size,
#endif
#if !defined(BOOT)
std::string getStringAtIndex(const char *const *s, int idx)
{
return std::string(s[idx]);
}
char *getStringAtIndex(char *dest, const char *const *s, int idx)
{
strcpy(dest, s[idx]);