mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: urls: fix string formatter in swprintf()
This commit is contained in:
parent
b3043e92f6
commit
85f7503aec
1 changed files with 1 additions and 1 deletions
2
render.c
2
render.c
|
|
@ -2585,7 +2585,7 @@ render_urls(struct terminal *term)
|
|||
if (text_len == 0)
|
||||
wcscpy(label, key);
|
||||
else {
|
||||
int count = swprintf(label, chars, L"%s - %s", key, text);
|
||||
int count = swprintf(label, chars + 1, L"%ls - %ls", key, text);
|
||||
if (count >= max_chars) {
|
||||
label[max_chars] = L'…';
|
||||
label[max_chars + 1] = L'\0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue