diff options
author | B. Watson <urchlay@slackware.uk> | 2024-12-23 04:40:38 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-12-23 04:42:22 -0500 |
commit | 8438c8d6e002beed22d714d6120b86166a582255 (patch) | |
tree | 9bf33928af0a99c868c9ab3f772a42c4aad946fe | |
parent | ac443ed49efc2163485ac27215e8340dba30acee (diff) | |
download | uxd-8438c8d6e002beed22d714d6120b86166a582255.tar.gz |
fix alternating special colors with -c
-rw-r--r-- | uxd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |