circo

claudio's IRC oasis
git clone git://git.bitsmanent.org/circo
Log | Files | Refs | README | LICENSE

commit 533330dddf348187749d36ce1279ddf5d73bd242
parent a3db33661f3bf4541d09b717353390965433a610
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Sat, 23 Apr 2022 17:55:24 +0200

Fix a SIGSEGV caused by a last second change in the previous commit.

Diffstat:
Mcirco.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/circo.c b/circo.c @@ -741,8 +741,8 @@ drawbar(void) { if(!b->notify) continue; - snprintfc(tmp, sizeof tmp - tmplen, " %C", colors[NickMention]); - tmplen = strlen(&tmp[tmplen]); + snprintfc(tmp, sizeof tmp, " %C", colors[NickMention]); + tmplen = strlen(tmp); snprintf(&tmp[tmplen], sizeof tmp - tmplen, "%s(%d)", b->name, b->notify); tmplen += gcsfitcols(&tmp[tmplen], cols) - &tmp[tmplen]; snprintfc(&tmp[tmplen], sizeof tmp - tmplen, "%..0C");