hirc

IRC client
Log | Files | Refs

commit 8979145af24a4d65a566081540b332aa99917c64
parent 04a438a35e57854c8f7792077e38edc243078693
Author: hhvn <dev@hhvn.uk>
Date:   Thu, 28 Oct 2021 22:13:12 +0100

ui.c: properly handle 2 digit bg colours

Diffstat:
Mui.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ui.c b/ui.c @@ -435,9 +435,9 @@ ui_wprintc(WINDOW *window, char *format, ...) { colourbuf[1][0] = *(s+2); s += 2; } - if (colourbuf[1][0] && *s && *(s+1) && isdigit(*(s+2))) { - colourbuf[1][1] = *(s+2); - s += 2; + if (colourbuf[1][0] && *s && isdigit(*(s+1))) { + colourbuf[1][1] = *(s+1); + s += 1; } colours[0] = colourbuf[0][0] ? atoi(colourbuf[0]) : 99;