From cba7ed517f467fcf957bcc4729b9f46b784bf919 Mon Sep 17 00:00:00 2001 From: matejcik Date: Mon, 25 Nov 2024 14:57:22 +0100 Subject: [PATCH] fix(core/kernel): properly cut off error message --- core/embed/sys/task/unix/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/embed/sys/task/unix/system.c b/core/embed/sys/task/unix/system.c index a7df50e917..d1da5c196a 100644 --- a/core/embed/sys/task/unix/system.c +++ b/core/embed/sys/task/unix/system.c @@ -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) {