aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'render.c')
-rw-r--r--render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render.c b/render.c
index 8e0e8f9c..7ed27f44 100644
--- a/render.c
+++ b/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';