fix custom brand use after free of c_str() in json.

This commit is contained in:
MichaelDvP
2026-03-13 10:15:00 +01:00
parent 4a2d78f8e1
commit cb96904a5c
2 changed files with 8 additions and 8 deletions

View File

@@ -63,7 +63,7 @@ class EMSdevice {
const char * device_type_2_device_name_translated(); // returns translated device type name
bool has_tags(const int8_t tag) const;
bool has_cmd(const char * cmd, const int8_t id) const;
const char * brand_to_char();
std::string brand_to_char();
std::string to_string();
std::string to_string_short();
std::string to_string_version();