aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-12-23 04:40:38 -0500
committerB. Watson <urchlay@slackware.uk>2024-12-23 04:42:22 -0500
commit8438c8d6e002beed22d714d6120b86166a582255 (patch)
tree9bf33928af0a99c868c9ab3f772a42c4aad946fe
parentac443ed49efc2163485ac27215e8340dba30acee (diff)
downloaduxd-8438c8d6e002beed22d714d6120b86166a582255.tar.gz
fix alternating special colors with -c
-rw-r--r--uxd.c6
1 files changed, 3 insertions, 3 deletions
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) {