From 8438c8d6e002beed22d714d6120b86166a582255 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 23 Dec 2024 04:40:38 -0500 Subject: fix alternating special colors with -c --- uxd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'uxd.c') diff --git a/uxd.c b/uxd.c index b1adaef..28abd4c 100644 --- a/uxd.c +++ b/uxd.c @@ -225,12 +225,12 @@ void parse_colors(char *arg) { /* optional 4th color */ if(!arg[3]) return; check_color(arg[3]); - special_colors[1] = arg[2] - '0'; + special_colors[1] = arg[3] - '0'; /* optional 5th color */ if(!arg[4]) return; - check_color(arg[3]); - bad_color = arg[3] - '0'; + check_color(arg[4]); + bad_color = arg[4] - '0'; } void number_err(int opt) { -- cgit v1.2.3