mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix strcpy length
This commit is contained in:
@@ -192,7 +192,7 @@ char * Helpers::render_boolean(char * result, bool value) {
|
|||||||
|
|
||||||
// render for native char strings
|
// render for native char strings
|
||||||
char * Helpers::render_value(char * result, const char * value, const int8_t format __attribute__((unused))) {
|
char * Helpers::render_value(char * result, const char * value, const int8_t format __attribute__((unused))) {
|
||||||
strlcpy(result, value, sizeof(result));
|
strcpy(result, value); // un-safe but we don't care
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user