Skip to content

Commit fa8e960

Browse files
committed
reset buffer
1 parent 9dacfd4 commit fa8e960

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/ui/view_nbgl.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const char *intro_message = NULL;
5353
const char *intro_submessage = NULL;
5454
char intro_msg_buf[MAX_CHARS_PER_VALUE1_LINE];
5555
char intro_submsg_buf[MAX_CHARS_SUBMSG_LINE];
56-
static char approval_label_buf[64];
56+
char approval_label_buf[MAX_CHARS_SUBMSG_LINE];
5757

5858
#define REVIEW_STANDALONE_SIZE 22
5959
#define REVIEW_MESSAGE_SIZE 18
@@ -530,6 +530,7 @@ void view_review_show_impl(unsigned int requireReply, const char *title, const c
530530
intro_submessage = NULL;
531531
intro_msg_buf[0] = '\0';
532532
intro_submsg_buf[0] = '\0';
533+
approval_label_buf[0] = '\0';
533534
viewdata.key = viewdata.keys[0];
534535
viewdata.value = viewdata.values[0];
535536
// Retrieve intro text for transaction
@@ -576,6 +577,7 @@ void view_review_show_with_intent_impl(unsigned int requireReply, const char *in
576577
intro_submessage = NULL;
577578
intro_msg_buf[0] = '\0';
578579
intro_submsg_buf[0] = '\0';
580+
approval_label_buf[0] = '\0';
579581
viewdata.key = viewdata.keys[0];
580582
viewdata.value = viewdata.values[0];
581583

0 commit comments

Comments
 (0)