fix(firmware): potential crash when using multi protocol module. (#7039)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user