1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 01:48:17 +00:00

fix(core/kernel): properly cut off error message

This commit is contained in:
matejcik 2024-11-25 14:57:22 +01:00 committed by matejcik
parent cf5416c95b
commit cba7ed517f

View File

@ -52,7 +52,7 @@ void system_exit(int exitcode) {
void system_exit_error_ex(const char* title, size_t title_len,
const char* message, size_t message_len,
const char* footer, size_t footer_len) {
fprintf(stderr, "ERROR: %s\n", message);
fprintf(stderr, "ERROR: %.*s\n", (int)message_len, message);
fflush(stderr);
if (g_error_handler != NULL) {