aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {