Skip to content

Commit dd9d721

Browse files
authored
feat: use correct size limit
1 parent e14cafb commit dd9d721

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ bool prepare_display_output() {
326326
strlcpy(symbol, token->symbol, MAX_TOKEN_SYMBOL_LEN + 1);
327327
symbol_len = strlen(token->symbol);
328328
}
329-
strlcpy(g_amount, symbol, 30);
329+
strlcpy(g_amount, symbol, MAX_TOKEN_SYMBOL_LEN + 1);
330330
g_amount[symbol_len] = ' ';
331331
format_value(output.value, g_amount + symbol_len + 1);
332332
return false;

0 commit comments

Comments
 (0)