Skip to content

Commit

Permalink
fix(core/kernel): properly cut off error message
Browse files Browse the repository at this point in the history
  • Loading branch information
matejcik committed Nov 25, 2024
1 parent 50447de commit b833c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/embed/sys/task/unix/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b833c8d

Please sign in to comment.