fix strcpy length

This commit is contained in:
proddy
2022-03-06 11:33:59 +01:00
parent f19bf17d21
commit 69dc26005a

View File

@@ -192,7 +192,7 @@ char * Helpers::render_boolean(char * result, bool value) {
// render for native char strings
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;
}