From a8a43a803f3adc7627c33f01d7b339b5b85e115b Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 22 Jan 2024 16:34:46 +0000 Subject: [PATCH] Increase buffer size to avoid truncating styles, GitHub issue 3809 from Ricardo Bittencourt. --- usr.bin/tmux/style.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/tmux/style.c b/usr.bin/tmux/style.c index cb507c25372..8491e0329b9 100644 --- a/usr.bin/tmux/style.c +++ b/usr.bin/tmux/style.c @@ -1,4 +1,4 @@ -/* $OpenBSD: style.c,v 1.33 2023/08/17 14:10:28 nicm Exp $ */ +/* $OpenBSD: style.c,v 1.34 2024/01/22 16:34:46 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -242,7 +242,7 @@ style_tostring(struct style *sy) int off = 0; const char *comma = "", *tmp = ""; static char s[256]; - char b[16]; + char b[21]; *s = '\0'; -- 2.20.1